diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-28 15:18:28 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-28 15:18:28 -0800 |
| commit | 1ed679d59b343e50b20b93eed0d81022520b9e26 (patch) | |
| tree | c819927c28ef1f5eca7d355b063a8460878cee40 /filamented.cginc | |
| parent | a58aa19b485a0acce24d441419788361a5d26efa (diff) | |
bugfix: metallics now have tint
Diffstat (limited to 'filamented.cginc')
| -rw-r--r-- | filamented.cginc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/filamented.cginc b/filamented.cginc index fac3fef..ebe17b8 100644 --- a/filamented.cginc +++ b/filamented.cginc @@ -355,6 +355,7 @@ inline half3 UnityGI_prefilteredRadiance(const UnityGIInput data, glossIn.reflUVW = r; #ifdef UNITY_SPECCUBE_BOX_PROJECTION + // we will tweak reflUVW in glossIn directly (as we pass it to Unity_GlossyEnvironment twice for probe0 and pr obe1), so keep original to pass into BoxProjectedCubemapDirection half3 originalReflUVW = glossIn.reflUVW; glossIn.reflUVW = BoxProjectedCubemapDirection(originalReflUVW, data.worldPos, data.probePosition[0], data.boxMin[0], data.boxMax[0]); |
