Files
agame/shader/includes/transparency.gdshaderinc
2026-10-13 15:27:01 +08:00

9 lines
225 B
Plaintext

uniform sampler2D screen_texture :
hint_screen_texture,
repeat_disable,
filter_linear_mipmap;
vec3 transparency_fragment(float alpha, vec2 screen_uv) {
return (1.0 - alpha) * texture(screen_texture, screen_uv).rgb;
}