Fix order of EXTRA_MATRIX and WORLD_MATRIX

in CanvasItem Shader reference page
This commit is contained in:
clayjohn
2022-09-19 11:57:22 -07:00
parent b4bfc5a4b1
commit 32ef437729

View File

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