diff options
| author | yum <yum.food.vr@gmail.com> | 2025-03-29 20:23:19 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-03-29 20:23:19 -0700 |
| commit | 6579d30f558908c23889f9e691a5932a49ecdedd (patch) | |
| tree | af7ef8fda3bdca65d410d93424d35f8d4219d230 /cnlohr.cginc | |
| parent | 5f84c37a4e95503f28540780c3257f8689cccef9 (diff) | |
Optimize tessellation code - vectorizing and frustrum culling
Diffstat (limited to 'cnlohr.cginc')
| -rw-r--r-- | cnlohr.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cnlohr.cginc b/cnlohr.cginc index 52aca35..ce3e883 100644 --- a/cnlohr.cginc +++ b/cnlohr.cginc @@ -44,7 +44,7 @@ bool isMirror() { return _VRChatMirrorMode != 0; } // https://github.com/cnlohr/shadertrixx?tab=readme-ov-file#eye-center-position
float3 getCenterCamPos() {
#if defined(USING_STEREO_MATRICES) || defined(UNITY_SINGLE_PASS_STEREO)
- return (unity_StereoWorldSpaceCameraPos[0] + unity_StereoWorldSpaceCameraPos[1]) / 2;
+ return (unity_StereoWorldSpaceCameraPos[0] + unity_StereoWorldSpaceCameraPos[1]) * 0.5;
#else
return isMirror() ? _VRChatMirrorCameraPos : _WorldSpaceCameraPos.xyz;
#endif
|
