mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-18 01:06:47 +01:00
Small improvement for the blend node. It still doesn't handles transparency properly.
This commit is contained in:
parent
dfa3b7ed51
commit
898ec5a387
@ -84,7 +84,7 @@ func get_value_for(uv : Vector2, pseed : int) -> Color:
|
||||
#vec4 $(name_uv)_s2 = $s2($uv);
|
||||
var s2 : Color = input2.get_value(uv)
|
||||
#float $(name_uv)_a = $amount*$a($uv);
|
||||
var a : float = opacity.get_default_value(uv) * opacity.get_value(uv)
|
||||
var a : float = opacity.get_value(uv)
|
||||
|
||||
#vec4(blend_$blend_type($uv, $(name_uv)_s1.rgb, $(name_uv)_s2.rgb, $(name_uv)_a*$(name_uv)_s1.a), min(1.0, $(name_uv)_s2.a+$(name_uv)_a*$(name_uv)_s1.a))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user