]> git.sesse.net Git - movit/blob - alpha_division_effect.frag
When the texture freelist is too large, cut from the back, not the front.
[movit] / alpha_division_effect.frag
1 // Note: Division by zero will give inf or nan, whose conversion to
2 // integer types is implementation-defined. However, anything is fine for
3 // alpha=0, since that's undefined anyway.
4 vec4 FUNCNAME(vec2 tc) {
5         vec4 x = INPUT(tc);
6         x.rgb /= x.aaa; 
7         return x;
8 }