Skip to content

Commit eb6b6aa

Browse files
committed
Add SCREEN_UV shader built-in to spatial light shader
1 parent 14b0433 commit eb6b6aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tutorials/shaders/shader_reference/spatial_shader.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_
467467
+-----------------------------------+------------------------------------------------------------------------+
468468
| in vec3 **NORMAL** | Normal vector, in view space. |
469469
+-----------------------------------+------------------------------------------------------------------------+
470+
| in vec2 **SCREEN_UV** | Screen UV coordinate for current pixel. |
471+
+-----------------------------------+------------------------------------------------------------------------|
470472
| in vec2 **UV** | UV that comes from the ``vertex()`` function. |
471473
+-----------------------------------+------------------------------------------------------------------------+
472474
| in vec2 **UV2** | UV2 that comes from the ``vertex()`` function. |

0 commit comments

Comments
 (0)