blob: a9a02754c3adb98d56212b7f6df42952ecfc8d5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#version 330 core
in vec2 texture_coordinate;
uniform vec3 light_color;
uniform sampler2D box_texture;
uniform sampler2D happy_texture;
out vec4 fragment_color;
void main()
{
fragment_color = texture(box_texture, texture_coordinate) * vec4(light_color.xyz, 1.0);
}
|