Fixed minimum size of aabb in ImmediateMesh to draw only one vertex

This commit is contained in:
Silc 'Tokage' Renew
2021-11-28 09:12:10 +09:00
parent 52b7d5fa34
commit ca2b7a87a5
4 changed files with 64 additions and 60 deletions

View File

@ -75,6 +75,8 @@ class ImmediateMesh : public Mesh {
Vector<uint8_t> surface_vertex_create_cache;
Vector<uint8_t> surface_attribute_create_cache;
const Vector3 SMALL_VEC3 = Vector3(CMP_EPSILON, CMP_EPSILON, CMP_EPSILON);
protected:
static void _bind_methods();