From f9730cf63f86f8985987e1bb87d61a54c2b666e2 Mon Sep 17 00:00:00 2001 From: Nelson Sexton Date: Thu, 9 Oct 2025 05:45:16 -0600 Subject: [PATCH] Merge pull request #11262 from SDGNelson/patch-1 Add Z_CLIP_SCALE to Spatial Shaders reference vertex built-ins --- tutorials/shaders/shader_reference/spatial_shader.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tutorials/shaders/shader_reference/spatial_shader.rst b/tutorials/shaders/shader_reference/spatial_shader.rst index 1d374a1f4..267c2f9dc 100644 --- a/tutorials/shaders/shader_reference/spatial_shader.rst +++ b/tutorials/shaders/shader_reference/spatial_shader.rst @@ -269,6 +269,13 @@ shader, this value can be used as desired. +----------------------------------------+--------------------------------------------------------+ | in vec4 **CUSTOM3** | Custom value from vertex primitive. | +----------------------------------------+--------------------------------------------------------+ +| out float **Z_CLIP_SCALE** | If written to, scales the vertex towards the camera to | +| | avoid clipping into things like walls. | +| | Lighting and shadows will continue to work correctly | +| | when this is written to, but screen-space effects like | +| | SSAO and SSR may break with lower scales. Try to keep | +| | this value as close to ``1.0`` as possible. | ++----------------------------------------+--------------------------------------------------------+ .. note::