]> git.sesse.net Git - movit/blob - alpha_division_effect.frag
Fix an issue where we could take an FBO off a freelist but not properly clean fbo_for...
[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 }