Fix T74964: Stereo Viewport Rendering Not Working

On some platforms the stereo viewport rendering was not working. The
issue was that the fragment shader and vertex shaded didn't match. Some
platforms will remove the non-matching in/out parameters and blender
needs to provide only the optimal set of parameters. Other platform
still want to receive data for the parameters that aren't used.

This fix uses the correct vertex shader that matches the fragment shader
making both platforms render the same result.
This commit is contained in:
Jeroen Bakker 2020-03-23 09:09:33 +01:00
parent 0c571db4ad
commit 46c0da6e69
Notes: blender-bot 2023-02-14 09:33:11 +01:00
Referenced by issue #74964, Stereo 3D anaglyph and interlace not working
1 changed files with 1 additions and 1 deletions

View File

@ -1014,7 +1014,7 @@ static const GPUShaderStages builtin_shader_stages[GPU_SHADER_BUILTIN_LEN] = {
},
[GPU_SHADER_2D_IMAGE_OVERLAYS_STEREO_MERGE] =
{
.vert = datatoc_gpu_shader_2D_image_vert_glsl,
.vert = datatoc_gpu_shader_2D_vert_glsl,
.frag = datatoc_gpu_shader_image_overlays_stereo_merge_frag_glsl,
},
[GPU_SHADER_2D_IMAGE] =