shader/sprite_negative: modulate color
This commit is contained in:
parent
9a7121e329
commit
7ac97455ef
1 changed files with 1 additions and 1 deletions
|
@ -4,5 +4,5 @@
|
|||
|
||||
void spriteMain(out vec4 fragColor) {
|
||||
vec4 texel = texture(tex, texCoord);
|
||||
fragColor = vec4((1.0 - texel.rgb / max(0.01, texel.a)) * texel.a, 0);
|
||||
fragColor = color * vec4((1.0 - texel.rgb / max(0.01, texel.a)) * texel.a, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue