masking shader

credits to scarm for finding it, thanks m8

Shader code
shader_type canvas_item;

void fragment(){
    COLOR = texture(SCREEN_TEXTURE, SCREEN_UV);
    COLOR.a = texture(TEXTURE, UV).a;
}

More from snesmocha

rgb offset shader v2

impact shader

FireShader

Related shaders

2D Hologram Shader

Half-Tone Comic Shader

PS1 Shader

The shader code and all code snippets in this post are under MIT license and can be used freely. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.
guest
0 Comments
Inline Feedbacks
View all comments