diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-14 22:07:44 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-14 22:07:44 -0800 |
| commit | 0b2eeefb9dd4b333f3065ba9842535d91524a536 (patch) | |
| tree | 865d470c012cb3e70dee6a5734848563d316e3f2 /3ner.cginc | |
| parent | 22dc9b8c81ca6b4d90e2a77e71c21945d15e3d0f (diff) | |
Impostors: baker now records albedo, normal, gloss, and depth
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |
