소스 검색

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

Michael Nischt 3 년 전
부모
커밋
89ee533b78
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      tutorials/shaders/shader_reference/shading_language.rst

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

@@ -110,9 +110,9 @@ Individual scalar members of vector types are accessed via the "x", "y", "z" and
 Alternatively, using "r", "g", "b" and "a" also works and is equivalent. Use whatever fits
 best for your needs.
 
-For matrices, use the ``m[row][column]`` indexing syntax to access each scalar, 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]``.
+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
+position of an object in a mat4 you use ``m[3][1]``.
 
 Constructing
 ~~~~~~~~~~~~