diff options
| author | yum <yum.food.vr@gmail.com> | 2024-09-12 09:02:27 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-09-12 09:02:27 -0700 |
| commit | c6705bf773143da77cb5a3bde4cd06f2679ea0f3 (patch) | |
| tree | 0242f20ed53cc42da51ec222322aa1bcb0fd1fd0 /tooner_outline_pass.cginc | |
| parent | dfb1ece3e78cf013866d18a3a234e2f4bf8834f8 (diff) | |
Replace all instances of _WorldSpaceCameraPos with center eye pos
Fixes left/right eye mismatch in VR.
Diffstat (limited to 'tooner_outline_pass.cginc')
| -rw-r--r-- | tooner_outline_pass.cginc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tooner_outline_pass.cginc b/tooner_outline_pass.cginc index f192cad..1c20c4a 100644 --- a/tooner_outline_pass.cginc +++ b/tooner_outline_pass.cginc @@ -5,6 +5,7 @@ #include "audiolink.cginc" #include "clones.cginc" +#include "cnlohr.cginc" #include "globals.cginc" #include "math.cginc" #include "pbr.cginc" @@ -86,6 +87,7 @@ v2f vert(appdata v) o.lmuv = v.uv1 * unity_LightmapST.xy + unity_LightmapST.zw; #endif + o.centerCamPos = getCenterCamPos(); return o; } |
