Transparent walls
See the player through walls in teh foreground
Shader code
shader_type canvas_item;
uniform vec2 player_pos = vec2(576,324);
uniform float max_distance = 75.0;
uniform float num = 0;
void fragment() {
if (COLOR.a!=0.0){
vec2 place = FRAGCOORD.xy;
float distance_to_player = distance(FRAGCOORD.xy, vec2(576,324));
COLOR.a = clamp(((distance_to_player-max_distance)/max_distance*5.0),0.3,1);
};
}
change the player_pos value to the middle of the screen
Thank you so much!
Exactly what i needed.