Преглед на файлове

Merge pull request #9735 from tetrapod00/spatial-custom-uvs

Update spatial_shaders.rst with CUSTOM0,1,2,3 descriptions (used for extra UVs)
Matthew преди 1 година
родител
ревизия
6a61ee7632
променени са 1 файла, в които са добавени 7 реда и са изтрити 4 реда
  1. 7 4
      tutorials/shaders/shader_reference/spatial_shader.rst

+ 7 - 4
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -236,13 +236,16 @@ shader, this value can be used as desired.
 +----------------------------------------+--------------------------------------------------------+
 | in vec4 **BONE_WEIGHTS**               |                                                        |
 +----------------------------------------+--------------------------------------------------------+
-| in vec4 **CUSTOM0**                    |                                                        |
+| in vec4 **CUSTOM0**                    | Custom value from vertex primitive. When using extra   |
+|                                        | UVs, ``xy`` is UV3 and ``zw`` is UV4.                  |
 +----------------------------------------+--------------------------------------------------------+
-| in vec4 **CUSTOM1**                    |                                                        |
+| in vec4 **CUSTOM1**                    | Custom value from vertex primitive. When using extra   |
+|                                        | UVs, ``xy`` is UV5 and ``zw`` is UV6.                  |
 +----------------------------------------+--------------------------------------------------------+
-| in vec4 **CUSTOM2**                    |                                                        |
+| in vec4 **CUSTOM2**                    | Custom value from vertex primitive. When using extra   |
+|                                        | UVs, ``xy`` is UV7 and ``zw`` is UV8.                  |
 +----------------------------------------+--------------------------------------------------------+
-| in vec4 **CUSTOM3**                    |                                                        |
+| in vec4 **CUSTOM3**                    | Custom value from vertex primitive.                    |
 +----------------------------------------+--------------------------------------------------------+
 
 .. note::