20 lines
322 B
GLSL
20 lines
322 B
GLSL
#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 = max(uColor.rgb, fragmentColor.rgb);
|
|
outColor = fragmentColor.rgb + uColor.rgb - uColor.rgb;
|
|
}
|