mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Fix order of EXTRA_MATRIX and WORLD_MATRIX
in CanvasItem Shader reference page
This commit is contained in:
@@ -75,7 +75,7 @@ it manually with the following code:
|
||||
|
||||
void vertex() {
|
||||
|
||||
VERTEX = (EXTRA_MATRIX * (WORLD_MATRIX * vec4(VERTEX, 0.0, 1.0))).xy;
|
||||
VERTEX = (WORLD_MATRIX * (EXTRA_MATRIX * vec4(VERTEX, 0.0, 1.0))).xy;
|
||||
}
|
||||
|
||||
.. note:: ``WORLD_MATRIX`` is actually a modelview matrix. It takes input in local space and transforms it
|
||||
|
||||
Reference in New Issue
Block a user