Merge pull request #52504 from V-Sekai/gltf_8_uv
8 uvs for glTF2, URI decode and Vertex Custom api
This commit is contained in:
commit
8aedcfced7
11 changed files with 232 additions and 47 deletions
|
|
@ -27,6 +27,7 @@
|
|||
}" />
|
||||
<argument index="4" name="material" type="Material" default="null" />
|
||||
<argument index="5" name="name" type="String" default="""" />
|
||||
<argument index="6" name="flags" type="int" default="0" />
|
||||
<description>
|
||||
Creates a new surface, analogous to [method ArrayMesh.add_surface_from_arrays].
|
||||
Surfaces are created to be rendered using a [code]primitive[/code], which may be any of the types defined in [enum Mesh.PrimitiveType]. (As a note, when using indices, it is recommended to only use points, lines, or triangles.) [method Mesh.get_surface_count] will become the [code]surf_idx[/code] for this new surface.
|
||||
|
|
@ -94,6 +95,13 @@
|
|||
Returns the amount of surfaces that the mesh holds.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_surface_format" qualifiers="const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="surface_idx" type="int" />
|
||||
<description>
|
||||
Returns the format of the surface that the mesh holds.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_surface_lod_count" qualifiers="const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="surface_idx" type="int" />
|
||||
|
|
|
|||
|
|
@ -210,6 +210,8 @@
|
|||
</constant>
|
||||
<constant name="ARRAY_FORMAT_CUSTOM_BASE" value="13" enum="ArrayFormat">
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_CUSTOM_BITS" value="3" enum="ArrayFormat">
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_CUSTOM0_SHIFT" value="13" enum="ArrayFormat">
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_CUSTOM1_SHIFT" value="16" enum="ArrayFormat">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue