qt5base-lts/tests/manual/rhi/instancing/inst.frag
Laszlo Agocs 9452c963c8 rhi: Add a test for instancing
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>
2019-07-01 17:34:40 +02:00

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);
}