|
@@ -1,6 +1,7 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="ArrayMesh" inherits="Mesh" category="Core" version="3.1.2">
|
|
<class name="ArrayMesh" inherits="Mesh" category="Core" version="3.1.2">
|
|
<brief_description>
|
|
<brief_description>
|
|
|
|
+ [Mesh] type that provides utility for constructing a surface from arrays.
|
|
</brief_description>
|
|
</brief_description>
|
|
<description>
|
|
<description>
|
|
The [code]ArrayMesh[/code] is used to construct a [Mesh] by specifying the attributes as arrays. The most basic example is the creation of a single triangle
|
|
The [code]ArrayMesh[/code] is used to construct a [Mesh] by specifying the attributes as arrays. The most basic example is the creation of a single triangle
|
|
@@ -30,6 +31,7 @@
|
|
<argument index="0" name="name" type="String">
|
|
<argument index="0" name="name" type="String">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Add name for a blend shape that will be added with [method add_surface_from_arrays]. Must be called before surface is added.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
<method name="add_surface_from_arrays">
|
|
<method name="add_surface_from_arrays">
|
|
@@ -187,6 +189,7 @@
|
|
<argument index="2" name="data" type="PoolByteArray">
|
|
<argument index="2" name="data" type="PoolByteArray">
|
|
</argument>
|
|
</argument>
|
|
<description>
|
|
<description>
|
|
|
|
+ Updates a specified region of mesh arrays on GPU. Warning: only use if you know what you are doing. You can easily cause crashes by calling this function with improper arguments.
|
|
</description>
|
|
</description>
|
|
</method>
|
|
</method>
|
|
</methods>
|
|
</methods>
|
|
@@ -194,7 +197,7 @@
|
|
<member name="blend_shape_mode" type="int" setter="set_blend_shape_mode" getter="get_blend_shape_mode" enum="Mesh.BlendShapeMode">
|
|
<member name="blend_shape_mode" type="int" setter="set_blend_shape_mode" getter="get_blend_shape_mode" enum="Mesh.BlendShapeMode">
|
|
</member>
|
|
</member>
|
|
<member name="custom_aabb" type="AABB" setter="set_custom_aabb" getter="get_custom_aabb">
|
|
<member name="custom_aabb" type="AABB" setter="set_custom_aabb" getter="get_custom_aabb">
|
|
- An overriding bounding box for this mesh.
|
|
|
|
|
|
+ Overrides the [AABB] with one defined by user for use with frustum culling. Especially useful to avoid unnexpected culling when using a shader to offset vertices.
|
|
</member>
|
|
</member>
|
|
</members>
|
|
</members>
|
|
<constants>
|
|
<constants>
|