You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
all light types and shadows are working, pending a lot of clean-up
This commit is contained in:
@@ -328,7 +328,7 @@ Error MeshDataTool::commit_to_surface(const Ref<Mesh>& p_mesh) {
|
||||
|
||||
Ref<Mesh> ncmesh=p_mesh;
|
||||
int sc = ncmesh->get_surface_count();
|
||||
ncmesh->add_surface(Mesh::PRIMITIVE_TRIANGLES,arr);
|
||||
ncmesh->add_surface_from_arrays(Mesh::PRIMITIVE_TRIANGLES,arr);
|
||||
ncmesh->surface_set_material(sc,material);
|
||||
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user