Skip to content

Commit 6538f38

Browse files
clayjohnCalinou
andauthored
Mention Sorting Offset property in 3D rendering limitations (#6944)
Co-authored-by: Hugo Locurcio <[email protected]>
1 parent a166f7c commit 6538f38

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tutorials/3d/3d_rendering_limitations.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,15 @@ Transparency sorting
9696
In Godot, transparent materials are drawn after opaque materials. Transparent
9797
objects are sorted back to front before being drawn based on the Node3D's
9898
position, not the vertex position in world space. Due to this, overlapping
99-
objects may often be sorted out of order. To fix improperly sorted objects, tweak
100-
the material's :ref:`Render Priority <class_Material_property_render_priority>`
101-
property. This will force specific materials to appear in front or behind of
102-
other transparent materials. Even then, this may not always be sufficient.
99+
objects may often be sorted out of order. To fix improperly sorted objects,
100+
tweak the material's
101+
:ref:`Render Priority <class_Material_property_render_priority>`
102+
property or the node's
103+
:ref:`Sorting Offset <class_VisualInstance3D_property_sorting_offset>`.
104+
Render Priority will force specific materials to appear in front of or behind
105+
other transparent materials, while Sorting Offset will move the object
106+
forward or backward for the purpose of sorting. Even then, these may not
107+
always be sufficient.
103108

104109
Some rendering engines feature *order-independent transparency* techniques to
105110
alleviate this, but this is costly on the GPU. Godot currently doesn't provide

0 commit comments

Comments
 (0)