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

This commit is contained in:
Michael Nischt
2022-05-04 23:06:41 +02:00
committed by Hugo Locurcio
parent 72a2c55e5c
commit 89ee533b78

View File

@@ -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
~~~~~~~~~~~~