summaryrefslogtreecommitdiffstats
path: root/debug.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-03-30 18:43:30 -0700
committeryum <yum.food.vr@gmail.com>2026-03-30 18:43:34 -0700
commitc7c1f7733eac8d28faed999ee0dc4796d16a6ade (patch)
tree7b67125cef30f104ac7fefbafeb7eca82de4f5b4 /debug.cginc
parent46265149d719c0ebb61b0b72d9884f8bb5a76f4b (diff)
Add heightmaps to burley tiling
Also add --homo flag to gaussianize. This "homogenizes" the input by removing low frequency energy from the DFT of the image luma.
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);