Skip to content

Commit 052b122

Browse files
committed
Merge pull request #96184 from biswas08433/patch-1
Clarify transform data ordering in `RenderingServer.multimesh_set_buffer`
2 parents ef75473 + 1536f5e commit 052b122

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/classes/RenderingServer.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,6 +2639,9 @@
26392639
- Position + Custom data: 16 floats (12 floats for Transform3D, 4 floats of custom data)
26402640
- Position + Vertex color + Custom data: 20 floats (12 floats for Transform3D, 4 floats for Color, 4 floats of custom data)
26412641
[/codeblock]
2642+
Instance transforms are in row-major order. Specifically:
2643+
- For [Transform2D] the float-order is: [code](x.x, y.x, padding_float, origin.x, x.y, y.y, padding_float, origin.y)[/code].
2644+
- 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].
26422645
</description>
26432646
</method>
26442647
<method name="multimesh_set_buffer_interpolated">

0 commit comments

Comments
 (0)