From ac5d31ce7917d158118b601ee1f985ce5ec30688 Mon Sep 17 00:00:00 2001 From: AkaiMage <45891066+AkaiMage@users.noreply.github.com> Date: Sun, 3 Nov 2019 14:29:33 -0500 Subject: [PATCH] Fixed a typo with cubemap rotations. --- Cancerspace.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cancerspace.shader b/Cancerspace.shader index ddfc0f4..30d7406 100644 --- a/Cancerspace.shader +++ b/Cancerspace.shader @@ -438,7 +438,7 @@ o.pos = UnityViewToClipPos(viewPos); o.posOrigin = ComputeScreenPos(UnityObjectToClipPos(float4(0,0,0,1))); o.posOrigin.xy /= o.posOrigin.w; - o.cubemapSampler = rotateXYZ(o.posWorld - _WorldSpaceCameraPos, _OverlayCubemapRotation + fmod(_Time.y * _OverlayCubemapSpeed, UNITY_TWO_PI)); + o.cubemapSampler = rotateXYZ(o.posWorld - _WorldSpaceCameraPos, _OverlayCubemapRotation + fmod(_Time.y * _OverlayCubemapSpeed, 360)); o.uv.xy = v.uv.xy; o.uv.z = distanceForFalloff;