From 8c6e9be61b2a7b1c5b9e5b61252090a4e2432ce2 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 7 Aug 2025 18:59:23 -0700 Subject: add base color, normal, and metallic gloss textures --- 3ner.cginc | 2 ++ 1 file changed, 2 insertions(+) (limited to '3ner.cginc') diff --git a/3ner.cginc b/3ner.cginc index 00d98a0..d50f553 100644 --- a/3ner.cginc +++ b/3ner.cginc @@ -163,6 +163,8 @@ v2f domain( float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target { i.normal *= facing ? 1 : -1; + i.normal = normalize(i.normal); + i.tangent.xyz = normalize(i.tangent.xyz); Pbr pbr = getPbr(i); LightData light_data; GetLighting(i, pbr, light_data); -- cgit v1.2.3