From e48d11394dae404be322379b606853c5dddeaf11 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Sat, 19 Mar 2022 22:07:57 +0300 Subject: [PATCH] Rename several transform built-ins in shaders --- tutorials/shaders/shader_reference/spatial_shader.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/shaders/shader_reference/spatial_shader.rst b/tutorials/shaders/shader_reference/spatial_shader.rst index 3735e7f750b..ed08cf1998b 100644 --- a/tutorials/shaders/shader_reference/spatial_shader.rst +++ b/tutorials/shaders/shader_reference/spatial_shader.rst @@ -247,13 +247,13 @@ these properties, and if you don't write to them, Godot will optimize away the c +----------------------------------------+--------------------------------------------------------------------------------------------------+ | in bool **OUTPUT_IS_SRGB** | ``true`` when calculations happen in sRGB color space (``true`` in GLES2, ``false`` in GLES3). | +----------------------------------------+--------------------------------------------------------------------------------------------------+ -| in mat4 **WORLD_MATRIX** | Model space to world space transform. | +| in mat4 **MODEL_MATRIX** | Model space to world space transform. | +----------------------------------------+--------------------------------------------------------------------------------------------------+ -| in mat3 **WORLD_NORMAL_MATRIX** | | +| in mat3 **MODEL_NORMAL_MATRIX** | | +----------------------------------------+--------------------------------------------------------------------------------------------------+ -| in mat4 **INV_CAMERA_MATRIX** | World space to view space transform. | +| in mat4 **VIEW_MATRIX** | World space to view space transform. | +----------------------------------------+--------------------------------------------------------------------------------------------------+ -| in mat4 **CAMERA_MATRIX** | View space to world space transform. | +| in mat4 **INV_VIEW_MATRIX** | View space to world space transform. | +----------------------------------------+--------------------------------------------------------------------------------------------------+ | in mat4 **PROJECTION_MATRIX** | View space to clip space transform. | +----------------------------------------+--------------------------------------------------------------------------------------------------+