diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-04-16 10:24:05 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2024-04-16 21:57:06 +0200 |
commit | e55f6f0e01d1374d6f0c721da4ec80a673ea4402 (patch) | |
tree | e70ce14fabb6d9b7b3f9dc2b3751e0e0143bbde8 /tests/manual/rhi/multiview/multiview.frag | |
parent | d914c58c7ee07f0d7598cee3491b815bd8d8bc23 (diff) |
rhi: multiview manual test: exercise passing through gl_ViewIndex
Change-Id: Iee9a29250061ca57ea30e3e545d1a6de952c1852
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual/rhi/multiview/multiview.frag')
-rw-r--r-- | tests/manual/rhi/multiview/multiview.frag | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/rhi/multiview/multiview.frag b/tests/manual/rhi/multiview/multiview.frag index 375587662f..afcbff3504 100644 --- a/tests/manual/rhi/multiview/multiview.frag +++ b/tests/manual/rhi/multiview/multiview.frag @@ -1,10 +1,11 @@ #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, 1.0); + fragColor = vec4(v_color + v_viewIndex * 0.5, 1.0); } |