mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
7 lines
234 B
Plaintext
7 lines
234 B
Plaintext
|
//https://love2d.org/wiki/love.graphics.setStencil image mask
|
||
|
vec4 effect(vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords) {
|
||
|
if (Texel(texture, texture_coords).rgb == vec3(0.0))
|
||
|
discard;
|
||
|
return vec4(1.0);
|
||
|
}
|