summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbiswas08433 <BISWAS08433@GMAIL.COM>2024-08-28 01:30:25 +0530
committerRémi Verschelde <rverschelde@gmail.com>2024-09-23 09:29:20 +0200
commit1536f5ec7929d46b04bee5030bc7be2b8b42a36f (patch)
tree785de6928af78cc824ac2735d5f962e84bd93158 /doc
parent155fcd00b0ce722d06a8cd2a165ab29bb1c0d4b1 (diff)
downloadredot-engine-1536f5ec7929d46b04bee5030bc7be2b8b42a36f.tar.gz
Clarify transform data ordering in RenderingServer.multimesh_set_buffer
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/RenderingServer.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml
index 144f78349f..efdece45b3 100644
--- a/doc/classes/RenderingServer.xml
+++ b/doc/classes/RenderingServer.xml
@@ -2639,6 +2639,9 @@
- Position + Custom data: 16 floats (12 floats for Transform3D, 4 floats of custom data)
- Position + Vertex color + Custom data: 20 floats (12 floats for Transform3D, 4 floats for Color, 4 floats of custom data)
[/codeblock]
+ Instance transforms are in row-major order. Specifically:
+ - For [Transform2D] the float-order is: [code](x.x, y.x, padding_float, origin.x, x.y, y.y, padding_float, origin.y)[/code].
+ - For [Transform3D] the float-order is: [code](basis.x.x, basis.y.x, basis.z.x, origin.x, basis.x.y, basis.y.y, basis.z.y, origin.y, basis.x.z, basis.y.z, basis.z.z, origin.z)[/code].
</description>
</method>
<method name="multimesh_set_buffer_interpolated">