2018-02-27 23:15:07 +01:00
|
|
|
#version 150 core
|
2018-02-13 12:05:07 +01:00
|
|
|
|
2018-02-16 21:22:34 +01:00
|
|
|
uniform vec4 uColor;
|
|
|
|
|
2018-02-28 12:39:12 +01:00
|
|
|
in vec4 fragmentColor;
|
2018-02-27 23:15:07 +01:00
|
|
|
|
|
|
|
out vec3 outColor;
|
|
|
|
|
2018-02-13 12:05:07 +01:00
|
|
|
void main() {
|
2018-02-27 23:15:07 +01:00
|
|
|
outColor = vec3(
|
2018-03-10 21:22:35 +01:00
|
|
|
uColor.r * fragmentColor.r,
|
|
|
|
uColor.g * fragmentColor.g,
|
|
|
|
uColor.b * fragmentColor.b
|
|
|
|
);
|
2018-02-27 23:15:07 +01:00
|
|
|
|
2018-03-10 21:22:35 +01:00
|
|
|
|
|
|
|
outColor = fragmentColor.rgb + uColor.rgb - uColor.rgb;
|
2018-02-13 12:05:07 +01:00
|
|
|
}
|