Skip to content

Commit

Permalink
Fix SSR not working properly in stereo
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiaanOlij committed Jan 9, 2024
1 parent 2ccc5c7 commit 10a8b88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void main() {
vec2 base_arr[3] = vec2[](vec2(-1.0, -1.0), vec2(-1.0, 3.0), vec2(3.0, -1.0));
gl_Position = vec4(base_arr[gl_VertexIndex], 0.0, 1.0);
uv_interp.xy = clamp(gl_Position.xy, vec2(0.0, 0.0), vec2(1.0, 1.0)) * 2.0; // saturate(x) * 2.0
#ifdef MULTIVIEW
#ifdef USE_MULTIVIEW
uv_interp.z = ViewIndex;
#endif
}
Expand Down

0 comments on commit 10a8b88

Please sign in to comment.