qtbase/tests/manual/rhi/multiview/multiview.frag
Laszlo Agocs e55f6f0e01 rhi: multiview manual test: exercise passing through gl_ViewIndex
Change-Id: Iee9a29250061ca57ea30e3e545d1a6de952c1852
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2024-04-16 21:57:06 +02:00

12 lines
214 B
GLSL

#version 440
layout(location = 0) in vec3 v_color;
layout(location = 1) in flat uint v_viewIndex;
layout(location = 0) out vec4 fragColor;
void main()
{
fragColor = vec4(v_color + v_viewIndex * 0.5, 1.0);
}