mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Support custom AABB within MultiMesh resources
- Supporting custom AABB on the MultiMesh resource itself allows us to prevent costly runtime AABB recalculations. - Should also help improve CPU Particle performance.
This commit is contained in:
@@ -92,7 +92,11 @@
|
||||
</member>
|
||||
<member name="color_array" type="PackedColorArray" setter="_set_color_array" getter="_get_color_array" deprecated="Use [method set_instance_color] instead.">
|
||||
</member>
|
||||
<member name="custom_aabb" type="AABB" setter="set_custom_aabb" getter="get_custom_aabb" default="AABB(0, 0, 0, 0, 0, 0)">
|
||||
Custom AABB for this MultiMesh resource. Setting this manually prevents costly runtime AABB recalculations.
|
||||
</member>
|
||||
<member name="custom_data_array" type="PackedColorArray" setter="_set_custom_data_array" getter="_get_custom_data_array" deprecated="Use [method set_instance_custom_data] instead.">
|
||||
See [method set_instance_custom_data].
|
||||
</member>
|
||||
<member name="instance_count" type="int" setter="set_instance_count" getter="get_instance_count" default="0">
|
||||
Number of instances that will get drawn. This clears and (re)sizes the buffers. Setting data format or flags afterwards will have no effect.
|
||||
|
||||
Reference in New Issue
Block a user