summaryrefslogtreecommitdiffstats
path: root/debug.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'debug.cginc')
-rw-r--r--debug.cginc6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug.cginc b/debug.cginc
index 6510fdd..f6c8f15 100644
--- a/debug.cginc
+++ b/debug.cginc
@@ -14,6 +14,12 @@ float4 apply_debug_view(v2f i, Pbr pbr, LightData light_data, BrdfData bd,
return float4((normalOS + 1.0f) * 0.5f, 1);
#elif defined(_DEBUG_VIEW_METALLIC_GLOSS)
return float4(pbr.metallic, pbr.smoothness, 0, 1);
+#elif defined(_DEBUG_VIEW_HEIGHT)
+ #if defined(_PARALLAX_HEIGHTMAP) || defined(_BURLEY_TILING_HEIGHTMAP)
+ return float4(F1_TO_F3(pbr.height), 1);
+ #else
+ return float4(0, 0, 0, 1);
+ #endif
#elif defined(_DEBUG_VIEW_DEPTH)
float2 screen_uv = i.pos.xy / _ScreenParams.xy;
float depth = SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, screen_uv);