From c490d5ede61ebaf252160bd353dec045cb01d92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Thom=C3=A4?= Date: Tue, 17 Oct 2023 08:59:55 +0200 Subject: [PATCH] fix: vertex coordinates are in canvas space --- tutorials/shaders/shader_reference/canvas_item_shader.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/shaders/shader_reference/canvas_item_shader.rst b/tutorials/shaders/shader_reference/canvas_item_shader.rst index a65d4a7e864..7f6bd913a45 100644 --- a/tutorials/shaders/shader_reference/canvas_item_shader.rst +++ b/tutorials/shaders/shader_reference/canvas_item_shader.rst @@ -117,7 +117,7 @@ is usually: | | For a Sprite2D with a texture of size 64x32px, | | | **TEXTURE_PIXEL_SIZE** = :code:`vec2(1/64, 1/32)` | +--------------------------------+----------------------------------------------------+ -| inout vec2 **VERTEX** | Vertex, in image space. | +| inout vec2 **VERTEX** | Vertex, in local space. | +--------------------------------+----------------------------------------------------+ | inout vec2 **UV** | Normalized texture coordinates. Range from 0 to 1. | +--------------------------------+----------------------------------------------------+