1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Performance improvements for GLES2 CPU blendshapes

This commit is contained in:
paru
2021-05-13 16:16:17 +02:00
parent 66497e2ecb
commit ab21a3b8fb
9 changed files with 313 additions and 299 deletions

View File

@@ -101,7 +101,7 @@ public:
Vector<RID> reflection_probe_instances;
Vector<RID> gi_probe_instances;
Vector<float> blend_values;
PoolVector<float> blend_values;
VS::ShadowCastingSetting cast_shadows;
@@ -284,6 +284,9 @@ public:
virtual void mesh_set_blend_shape_mode(RID p_mesh, VS::BlendShapeMode p_mode) = 0;
virtual VS::BlendShapeMode mesh_get_blend_shape_mode(RID p_mesh) const = 0;
virtual void mesh_set_blend_shape_values(RID p_mesh, PoolVector<float> p_values) = 0;
virtual PoolVector<float> mesh_get_blend_shape_values(RID p_mesh) const = 0;
virtual void mesh_surface_update_region(RID p_mesh, int p_surface, int p_offset, const PoolVector<uint8_t> &p_data) = 0;
virtual void mesh_surface_set_material(RID p_mesh, int p_surface, RID p_material) = 0;