fix: adjust safe zone elevation and transparency sorting priority to prevent it covering tiles or clipping with terrain

This commit is contained in:
2026-07-06 17:42:26 +08:00
parent b879c7b684
commit f1ef43cb38
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -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