From b1190d537164e8271c79ff04c5ae9063fdb68481 Mon Sep 17 00:00:00 2001 From: Chaosus Date: Tue, 26 Nov 2024 20:55:47 +0300 Subject: [PATCH] Add `SCREEN_UV` shader built-in to spatial light shader --- tutorials/shaders/shader_reference/spatial_shader.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/shaders/shader_reference/spatial_shader.rst b/tutorials/shaders/shader_reference/spatial_shader.rst index f7bef93a752..ebb8f9da4c6 100644 --- a/tutorials/shaders/shader_reference/spatial_shader.rst +++ b/tutorials/shaders/shader_reference/spatial_shader.rst @@ -467,6 +467,8 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_ +-----------------------------------+------------------------------------------------------------------------+ | in vec3 **NORMAL** | Normal vector, in view space. | +-----------------------------------+------------------------------------------------------------------------+ +| in vec2 **SCREEN_UV** | Screen UV coordinate for current pixel. | ++-----------------------------------+------------------------------------------------------------------------+ | in vec2 **UV** | UV that comes from the ``vertex()`` function. | +-----------------------------------+------------------------------------------------------------------------+ | in vec2 **UV2** | UV2 that comes from the ``vertex()`` function. |