diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-14 23:26:14 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-14 23:26:14 -0800 |
| commit | d01a5d14765cb106327f805c642bc150f5414b3f (patch) | |
| tree | 5fbc3a96dd8c61e76e3ae8f78f59514356492402 /3ner.cginc | |
| parent | d1eb208ecbeba1ab7bf894d9f14d2652739bc63e (diff) | |
Impostors: implement metallic gloss, normals
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
