File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
tutorials/shaders/shader_reference Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,13 @@ shader, this value can be used as desired.
269269+----------------------------------------+--------------------------------------------------------+
270270| in vec4 **CUSTOM3 ** | Custom value from vertex primitive. |
271271+----------------------------------------+--------------------------------------------------------+
272+ | out float **Z_CLIP_SCALE ** | If written to, scales the vertex towards the camera to |
273+ | | avoid clipping into things like walls. |
274+ | | Lighting and shadows will continue to work correctly |
275+ | | when this is written to, but screen-space effects like |
276+ | | SSAO and SSR may break with lower scales. Try to keep |
277+ | | this value as close to ``1.0 `` as possible. |
278+ +----------------------------------------+--------------------------------------------------------+
272279
273280.. note ::
274281
You can’t perform that action at this time.
0 commit comments