mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
402 B
19 lines
402 B
#if !defined(GL_ES) && __VERSION__ == 120 |
|
#define lowp |
|
#endif |
|
|
|
#if defined(GL_ES) || __VERSION__ == 120 |
|
#define fragColor gl_FragColor |
|
#endif |
|
|
|
uniform lowp float multiplier; |
|
uniform lowp vec4 color; |
|
uniform lowp vec4 additions[3]; |
|
|
|
#if !defined(GL_ES) && __VERSION__ >= 130 |
|
out lowp vec4 fragColor; |
|
#endif |
|
|
|
void main() { |
|
fragColor = color*multiplier + additions[0] + additions[1] + additions[2]; |
|
}
|
|
|