Skip to content

Commit

Permalink
Document VERTEX_ID, INSTANCE_ID built-ins for canvas_item vertex shader
Browse files Browse the repository at this point in the history
  • Loading branch information
kleonc committed Nov 2, 2023
1 parent 6823400 commit be0806b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tutorials/shaders/shader_reference/canvas_item_shader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ is usually:
| in mat4 **SCREEN_MATRIX** | Canvas space to clip space. In clip space |
| | coordinates ranging from (-1, -1) to (1, 1). |
+--------------------------------+----------------------------------------------------+
| in int **INSTANCE_ID** | Instance ID for instancing. |
+--------------------------------+----------------------------------------------------+
| in vec4 **INSTANCE_CUSTOM** | Instance custom data. |
+--------------------------------+----------------------------------------------------+
| in bool **AT_LIGHT_PASS** | Always ``false``. |
Expand All @@ -119,6 +121,9 @@ is usually:
+--------------------------------+----------------------------------------------------+
| inout vec2 **VERTEX** | Vertex, in local space. |
+--------------------------------+----------------------------------------------------+
| in int **VERTEX_ID** | The index of the current vertex in the vertex |
| | buffer. |
+--------------------------------+----------------------------------------------------+
| inout vec2 **UV** | Normalized texture coordinates. Range from 0 to 1. |
+--------------------------------+----------------------------------------------------+
| inout vec4 **COLOR** | Color from vertex primitive. |
Expand Down

0 comments on commit be0806b

Please sign in to comment.