| 153 | inline float add(float &a, float &b) { return a + b; } |
| 154 | |
| 155 | inline float screen(float &a, float &b) { |
| 156 | return (1 - (1 - a / 255.f) * (1 - b / 255.f)) * 255.f; |
| 157 | } |
| 158 | |
| 159 | inline float colordodge(float &a, float &b) { return (a / (255.f - b)) * 255.f; } |
| 160 |