Unsaved changes

This commit is contained in:
Rendo 2025-12-26 01:32:05 +05:00
commit d9e676b9c5

View file

@ -26,7 +26,8 @@ func update_material(substances: Array[RuntimeSubstanceData]) -> void:
for sub in substances: for sub in substances:
if display_type == DisplayType.Fluid: if display_type == DisplayType.Fluid:
alpha += sub.substance.liquid_transparency alpha += sub.substance.liquid_transparency
color = color.lerp(sub.substance.color,sub.amount/total_weight) color = color.lerp(sub.substance.color,sub.amount/total_weight
)
if display_type == DisplayType.Fluid: if display_type == DisplayType.Fluid:
alpha /= len(substances) alpha /= len(substances)
color.a = alpha color.a = alpha