summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-01-14 22:07:44 -0800
committeryum <yum.food.vr@gmail.com>2026-01-14 22:07:44 -0800
commit0b2eeefb9dd4b333f3065ba9842535d91524a536 (patch)
tree865d470c012cb3e70dee6a5734848563d316e3f2 /3ner.cginc
parent22dc9b8c81ca6b4d90e2a77e71c21945d15e3d0f (diff)
Impostors: baker now records albedo, normal, gloss, and depth
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc6
1 files changed, 5 insertions, 1 deletions
diff --git a/3ner.cginc b/3ner.cginc
index c104c68..db10781 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -265,8 +265,12 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target {
i.normal *= facing ? 1 : -1;
Pbr pbr = getPbr(i);
-#if defined(_UNLIT)
+#if defined(_DEBUG_VIEW_UNLIT)
return pbr.albedo;
+#elif defined(_DEBUG_VIEW_WORLD_SPACE_NORMALS)
+ return float4(i.normal, 1);
+#elif defined(_DEBUG_VIEW_METALLIC_GLOSS)
+ return float4(pbr.metallic, pbr.smoothness, 0, 1);
#endif
LightData light_data;