Unsaved changes
This commit is contained in:
parent
4f6c151e25
commit
d9e676b9c5
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ func update_material(substances: Array[RuntimeSubstanceData]) -> void:
|
|||
for sub in substances:
|
||||
if display_type == DisplayType.Fluid:
|
||||
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:
|
||||
alpha /= len(substances)
|
||||
color.a = alpha
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue