mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Fix matrix member to column-major access in Shading language (#5794)
This commit is contained in:
committed by
Hugo Locurcio
parent
72a2c55e5c
commit
89ee533b78
@@ -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
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user