Skip to content

Commit ebf5a78

Browse files
authored
Removed reference to 'DEPTH' in CanvasItem shaders (godotengine#8616)
* Remove 'DEPTH' constant from CanvasItem shaders * Re-added Origin mention
1 parent 44e0eb1 commit ebf5a78

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tutorials/shaders/shader_reference/canvas_item_shader.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ it to the ``NORMALMAP`` property. Godot will handle converting it for use in 2D
159159
| Built-in | Description |
160160
+=============================================+===============================================================+
161161
| in vec4 **FRAGCOORD** | Coordinate of pixel center. In screen space. ``xy`` specifies |
162-
| | position in window, ``z`` specifies fragment depth if |
163-
| | ``DEPTH`` is not used. Origin is lower-left. |
162+
| | position in window. Origin is lower-left. |
164163
+---------------------------------------------+---------------------------------------------------------------+
165164
| in vec2 **SCREEN_PIXEL_SIZE** | Size of individual pixels. Equal to inverse of resolution. |
166165
+---------------------------------------------+---------------------------------------------------------------+
@@ -233,8 +232,7 @@ Below is an example of a light shader that takes a CanvasItem's normal map into
233232
| Built-in | Description |
234233
+==================================+==============================================================================+
235234
| in vec4 **FRAGCOORD** | Coordinate of pixel center. In screen space. ``xy`` specifies |
236-
| | position in window, ``z`` specifies fragment depth if |
237-
| | ``DEPTH`` is not used. Origin is lower-left. |
235+
| | position in window. Origin is lower-left. |
238236
+----------------------------------+------------------------------------------------------------------------------+
239237
| in vec3 **NORMAL** | Input Normal. |
240238
+----------------------------------+------------------------------------------------------------------------------+

0 commit comments

Comments
 (0)