mirror of
https://github.com/FOSS-Supremacy/OpenLiberty.git
synced 2025-04-28 20:07:57 +03:00
Disable face culling on transparent items
This commit is contained in:
parent
4812a2c22c
commit
330b5a7af2
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ func spawn(id: int, model_name: String, position: Vector3, scale: Vector3, rotat
|
|||
material.albedo_texture = ImageTexture.create_from_image(raster.image)
|
||||
if raster.has_alpha:
|
||||
material.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA
|
||||
material.cull_mode = BaseMaterial3D.CULL_DISABLED
|
||||
break
|
||||
|
||||
instance.material_override = material
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue