Skip to content

Commit

Permalink
Fix stereo pano sphere preview (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak authored May 1, 2024
1 parent 7d0579c commit 4548c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Shaders/360PanoramaWarp.shader
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Shader "Custom/360PanoramaWarp"
float2 uv = ToRadialCoords(vdir);
if (_Stereoscopic == 1)
{
uv *= fixed2(1.0, 0.5) + fixed2(0, unity_StereoEyeIndex * 0.5);
uv = uv * fixed2(1.0, 0.5) + fixed2(0, unity_StereoEyeIndex * 0.5);
}

uv.x *= _MainTex_ST.x + _MainTex_ST.z;
Expand Down

0 comments on commit 4548c79

Please sign in to comment.