Use mesh instead of immediate for drawing Sprite3D

This commit is contained in:
clayjohn
2020-06-26 20:22:25 -07:00
parent 28c0088d86
commit 6c0ff26f35
4 changed files with 155 additions and 35 deletions

View File

@@ -1838,6 +1838,8 @@ RID SpatialMaterial::get_material_rid_for_2d(bool p_shaded, bool p_transparent,
}
materials_for_2d[version] = material;
// flush before using so we can access the shader right away
flush_changes();
return materials_for_2d[version]->get_rid();
}