fix: adjust safe zone elevation and transparency sorting priority to prevent it covering tiles or clipping with terrain
This commit is contained in:
@@ -674,6 +674,8 @@ func _animate_safe_zone_appear():
|
||||
# Duplicate mesh+material so we animate without touching the shared .tres on disk.
|
||||
var anim_mat: StandardMaterial3D = mat.duplicate()
|
||||
anim_mat.albedo_color = Color(mat.albedo_color.r, mat.albedo_color.g, mat.albedo_color.b, 0.0)
|
||||
# Force render priority so the transparent decal correctly sorts over the terrain
|
||||
anim_mat.render_priority = 1
|
||||
|
||||
var anim_mesh = original_mesh.duplicate()
|
||||
anim_mesh.material = anim_mat
|
||||
|
||||
Reference in New Issue
Block a user