#version 330 core
// The result : color of the fragment.
out vec4 FragColor;


// The input variable from the vertex shader (same name and same type). 
in vec3 color;
uniform float intensity;
uniform vec4 colorDiffuse0; // Input Color.

void main() {

	vec3 ambient = vec3(0.7333, 0.7333, 0.7333);
	vec3 diffuse = color;
    FragColor = intensity * vec4(ambient + diffuse, 1.0)*colorDiffuse0;
} 