summaryrefslogtreecommitdiffstats
path: root/2ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-06-30 09:25:46 -0700
committeryum <yum.food.vr@gmail.com>2025-06-30 09:26:13 -0700
commit7db318d2903ad993c618f551c455ec30c131d194 (patch)
tree75f82a11a7841ad7d4e5a2c4c9a6a13e86c88635 /2ner.cginc
parent31bba649de265dd83ea1af638c03d224696d07b3 (diff)
Add oklab color clamp & fix light volumes shading
Diffstat (limited to '2ner.cginc')
-rw-r--r--2ner.cginc9
1 files changed, 1 insertions, 8 deletions
diff --git a/2ner.cginc b/2ner.cginc
index e9edb8d..e1bf6f7 100644
--- a/2ner.cginc
+++ b/2ner.cginc
@@ -313,12 +313,6 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
i.uv01.xy = eye_effect_00.uv;
#endif
- float4x4 tangentToWorld = float4x4(
- float4(i.tangent, 0),
- float4(i.binormal, 0),
- float4(i.normal, 0),
- float4(0, 0, 0, 1)
- );
#if defined(_CUSTOM30)
#if defined(FORWARD_BASE_PASS) || (!defined(_DEPTH_PREPASS) && defined(SHADOW_CASTER_PASS))
#if defined(_CUSTOM30_BASICCUBE)
@@ -343,7 +337,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
#endif
#endif
- tangentToWorld = float4x4(
+ float4x4 tangentToWorld = float4x4(
float4(i.tangent, 0),
float4(i.binormal, 0),
float4(i.normal, 0),
@@ -356,7 +350,6 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
ssao = get_ssao(i, tangentToWorld, debug);
#endif
YumPbr pbr = GetYumPbr(i, tangentToWorld);
- //pbr.ao *= ssao;
pbr.albedo.rgb *= ssao;
#if defined(META_PASS)