fix 取消关卡透明度

master
chendian 1 year ago
parent 0c424b13d0
commit 6b07b14e86

@ -1,5 +1,4 @@
shader_type spatial;
render_mode depth_draw_always;
uniform bool is_link = false;
uniform bool is_focus_from = false;
uniform bool is_focus_to = false;
@ -32,11 +31,11 @@ void fragment() {
bool is_in_focus_from = is_in_focus(focus_min_from,focus_max_from);
bool is_in_focus_to = is_in_focus(focus_min_to,focus_max_to);
if(is_in_focus_from&&is_in_focus_to){
ALPHA = 1.0;
//ALPHA = 1.0;
}
else if(is_focus_to&&is_in_focus_to){
//ALPHA = focus_rate;
ALPHA = 1.0;
//ALPHA = 1.0;
}
else if(is_focus_from&&is_in_focus_from){
//ALPHA = 1.0 - focus_rate;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save