summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/3ner.cginc b/3ner.cginc
index 9b73a53..2452262 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -276,7 +276,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target {
#if defined(_DEBUG_VIEW_UNLIT)
return pbr.albedo;
#elif defined(_DEBUG_VIEW_WORLD_SPACE_NORMALS)
- return float4(i.normal, 1);
+ return float4((pbr.normal + 1.0f) * 0.5f, 1);
#elif defined(_DEBUG_VIEW_METALLIC_GLOSS)
return float4(pbr.metallic, pbr.smoothness, 0, 1);
#endif