2021-01-24 02:31:28 +00:00
|
|
|
#version 330 core
|
|
|
|
in vec2 oUV;
|
|
|
|
|
|
|
|
out vec4 FragColor;
|
|
|
|
|
|
|
|
uniform sampler2D texture1;
|
|
|
|
uniform sampler2D texture2;
|
|
|
|
|
2021-01-25 19:53:28 +00:00
|
|
|
uniform float ambientStrength;
|
|
|
|
uniform vec3 ambientColor;
|
|
|
|
|
2021-01-24 02:31:28 +00:00
|
|
|
void main()
|
|
|
|
{
|
2021-01-25 19:53:28 +00:00
|
|
|
vec3 ambient = ambientColor * ambientStrength;
|
|
|
|
|
|
|
|
FragColor = mix(texture(texture1, oUV), texture(texture2, oUV), 0.2) * vec4(ambient, 1.0);
|
2021-01-24 02:31:28 +00:00
|
|
|
}
|