瀏覽代碼

Fix some incorrect entries in shader built-ins

Yuri Rubinsky 1 年之前
父節點
當前提交
a646c369c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tutorials/shaders/shader_reference/spatial_shader.rst

+ 2 - 2
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -173,7 +173,7 @@ shader, this value can be used as desired.
 +----------------------------------------+--------------------------------------------------------+
 | in vec3 **CAMERA_DIRECTION_WORLD**     | Camera world space direction.                          |
 +----------------------------------------+--------------------------------------------------------+
-| in int **CAMERA_VISIBLE_LAYERS**       | Cull layers of the camera rendering the current pass.  |
+| in uint **CAMERA_VISIBLE_LAYERS**      | Cull layers of the camera rendering the current pass.  |
 +----------------------------------------+--------------------------------------------------------+
 | in bool **OUTPUT_IS_SRGB**             | ``true`` when output is in sRGB color space            |
 |                                        | (this is ``true`` in the Compatibility renderer,       |
@@ -294,7 +294,7 @@ these properties, and if you don't write to them, Godot will optimize away the c
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | in vec3 **CAMERA_DIRECTION_WORLD**     | Camera direction, in world space.                                                                |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
-| in int **CAMERA_VISIBLE_LAYERS**       | Cull layers of the camera rendering the current pass.                                            |
+| in uint **CAMERA_VISIBLE_LAYERS**      | Cull layers of the camera rendering the current pass.                                            |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+
 | in vec3 **VERTEX**                     | Vertex that comes from vertex function (default, in view space).                                 |
 +----------------------------------------+--------------------------------------------------------------------------------------------------+