QuadMesh remove format ARRAY_FORMAT_INDEX
This commit is contained in:
parent
281d0bd59e
commit
62f8b0eb91
|
@ -1390,6 +1390,12 @@ void QuadMesh::_bind_methods() {
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "center_offset"), "set_center_offset", "get_center_offset");
|
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "center_offset"), "set_center_offset", "get_center_offset");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t QuadMesh::surface_get_format(int p_idx) const {
|
||||||
|
ERR_FAIL_INDEX_V(p_idx, 1, 0);
|
||||||
|
|
||||||
|
return RS::ARRAY_FORMAT_VERTEX | RS::ARRAY_FORMAT_NORMAL | RS::ARRAY_FORMAT_TANGENT | RS::ARRAY_FORMAT_TEX_UV;
|
||||||
|
}
|
||||||
|
|
||||||
QuadMesh::QuadMesh() {
|
QuadMesh::QuadMesh() {
|
||||||
primitive_type = PRIMITIVE_TRIANGLES;
|
primitive_type = PRIMITIVE_TRIANGLES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,6 +285,8 @@ protected:
|
||||||
virtual void _create_mesh_array(Array &p_arr) const override;
|
virtual void _create_mesh_array(Array &p_arr) const override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
virtual uint32_t surface_get_format(int p_idx) const override;
|
||||||
|
|
||||||
QuadMesh();
|
QuadMesh();
|
||||||
|
|
||||||
void set_size(const Size2 &p_size);
|
void set_size(const Size2 &p_size);
|
||||||
|
|
Loading…
Reference in New Issue