2020-10-18 22:03:42 +02:00
|
|
|
#version 330
|
|
|
|
|
|
|
|
out vec4 fragColor;
|
|
|
|
smooth in vec4 ioFragColor;
|
2020-10-31 22:37:26 +01:00
|
|
|
in vec3 ioNormal;
|
|
|
|
in vec2 ioUV;
|
2020-10-18 22:03:42 +02:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2020-10-31 22:37:26 +01:00
|
|
|
float diff = max(dot(ioNormal, vec3(1., 1., 1.)), 0.3);
|
|
|
|
fragColor = ioFragColor * diff;
|
2020-10-18 22:03:42 +02:00
|
|
|
}
|