9452c963c8
Draws 1024 cubes at random x,y positions with varying color with a single instanced draw call. Change-Id: I8737503acf23866ad4734b1d88753415a3b93445 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
10 lines
144 B
GLSL
10 lines
144 B
GLSL
#version 440
|
|
|
|
layout(location = 0) in vec3 vColor;
|
|
layout(location = 0) out vec4 fragColor;
|
|
|
|
void main()
|
|
{
|
|
fragColor = vec4(vColor, 1.0);
|
|
}
|