diff options
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); |
