Просмотр исходного кода

Fix matrix member to column-major access in Shading language (#5794)

Michael Nischt 3 лет назад
Родитель
Сommit
c2212f1646
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tutorials/shaders/shader_reference/shading_language.rst

+ 1 - 1
tutorials/shaders/shader_reference/shading_language.rst

@@ -114,7 +114,7 @@ Individual scalar members of vector types are accessed via the "x", "y", "z" and
 "w" members. Alternatively, using "r", "g", "b" and "a" also works and is
 "w" members. Alternatively, using "r", "g", "b" and "a" also works and is
 equivalent. Use whatever fits best for your needs.
 equivalent. Use whatever fits best for your needs.
 
 
-For matrices, use the ``m[row][column]`` indexing syntax to access each scalar,
+For matrices, use the ``m[column][row]`` indexing syntax to access each scalar,
 or ``m[idx]`` to access a vector by row index. For example, for accessing the y
 or ``m[idx]`` to access a vector by row index. For example, for accessing the y
 position of an object in a mat4 you use ``m[3][1]``.
 position of an object in a mat4 you use ``m[3][1]``.