summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc5
1 files changed, 5 insertions, 0 deletions
diff --git a/3ner.cginc b/3ner.cginc
index 2452262..a6900d3 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -273,6 +273,11 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target {
i.normal *= facing ? 1 : -1;
Pbr pbr = getPbr(i);
+
+#if defined(_IMPOSTORS)
+ i.normal = pbr.normal;
+#endif
+
#if defined(_DEBUG_VIEW_UNLIT)
return pbr.albedo;
#elif defined(_DEBUG_VIEW_WORLD_SPACE_NORMALS)