diff options
| author | yum <yum.food.vr@gmail.com> | 2025-11-02 09:19:50 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-11-02 09:19:50 -0800 |
| commit | 93f27e3a8545fef6ccc293d033e5f422ed821215 (patch) | |
| tree | 0aa80b3bbd40e9fa8c7ffbddeb523df46c90002a /3ner.cginc | |
| parent | ea09e3e5425d935ed9dd277c0f1a7488033d2ede (diff) | |
generalize norm conversion code
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -266,8 +266,6 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target { i.tangent.xyz = UnityObjectToWorldNormal(i.tangent.xyz); i.normal *= facing ? 1 : -1; - i.normal = normalize(i.normal); - i.tangent.xyz = normalize(i.tangent.xyz); Pbr pbr = getPbr(i); #if defined(_UNLIT) @@ -278,7 +276,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target { GetLighting(i, pbr, light_data); #if 0 - float c = light_data.direct.NoL; + float c = light_data.common.NoV; return float4(c,c,c,1); #endif return brdf(pbr, light_data); |
