summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-03-08 18:58:25 -0800
committeryum <yum.food.vr@gmail.com>2025-03-08 18:58:25 -0800
commit17e4cdf3a2174641e5b30384377b708ac5ac55f7 (patch)
treefb54e51db395c4e1ee639471aa4c07f51308cf24
parent08762a99117fdddb3b48b450d02dd515b3eb78af (diff)
fallback cubemap origin is now fixed
-rw-r--r--yum_lighting.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/yum_lighting.cginc b/yum_lighting.cginc
index 759eee6..b8856ed 100644
--- a/yum_lighting.cginc
+++ b/yum_lighting.cginc
@@ -130,7 +130,7 @@ float3 getIndirectSpecular(v2f i, YumPbr pbr, float3 view_dir) {
half3 reflectVector = reflect(-view_dir, pbr.normal);
#ifdef UNITY_SPECCUBE_BOX_PROJECTION
- reflectVector = BoxProjectedCubemapDirection(reflectVector, data.worldPos, data.probePosition[0], data.boxMin[0], data.boxMax[0]);
+ reflectVector = BoxProjectedCubemapDirection(reflectVector, data.worldPos, /*probe_position=*/0, /*box_min=*/-1, /*box_max=*/1);
#endif
half mip = roughness * UNITY_SPECCUBE_LOD_STEPS;