Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tutorials/shaders/shader_reference/canvas_item_shader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ it to the ``NORMALMAP`` property. Godot will handle converting it for use in 2D
| Built-in | Description |
+=============================================+===============================================================+
| in vec4 **FRAGCOORD** | Coordinate of pixel center. In screen space. ``xy`` specifies |
| | position in window, ``z`` specifies fragment depth if |
| | ``DEPTH`` is not used. Origin is lower-left. |
| | position in window. Origin is lower-left. |
+---------------------------------------------+---------------------------------------------------------------+
| in vec2 **SCREEN_PIXEL_SIZE** | Size of individual pixels. Equal to inverse of resolution. |
+---------------------------------------------+---------------------------------------------------------------+
Expand Down Expand Up @@ -233,8 +232,7 @@ Below is an example of a light shader that takes a CanvasItem's normal map into
| Built-in | Description |
+==================================+==============================================================================+
| in vec4 **FRAGCOORD** | Coordinate of pixel center. In screen space. ``xy`` specifies |
| | position in window, ``z`` specifies fragment depth if |
| | ``DEPTH`` is not used. Origin is lower-left. |
| | position in window. Origin is lower-left. |
+----------------------------------+------------------------------------------------------------------------------+
| in vec3 **NORMAL** | Input Normal. |
+----------------------------------+------------------------------------------------------------------------------+
Expand Down