summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc4
1 files changed, 1 insertions, 3 deletions
diff --git a/3ner.cginc b/3ner.cginc
index 28facdc..24cf52d 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -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);