mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Use mesh instead of immediate for drawing Sprite3D
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user