|
#version 150 core
|
|
|
|
uniform vec4 uColor;
|
|
|
|
in vec4 fragmentColor;
|
|
|
|
out vec3 outColor;
|
|
|
|
void main() {
|
|
outColor = vec3(
|
|
uColor.r * fragmentColor.r,
|
|
uColor.g * fragmentColor.g,
|
|
uColor.b * fragmentColor.b
|
|
);
|
|
|
|
|
|
outColor = fragmentColor.rgb + uColor.rgb - uColor.rgb;
|
|
}
|