summaryrefslogtreecommitdiff
path: root/demo.fs
blob: af6e190bbb91f830e231f3733c85f2ebf23700b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 330 core

in vec2 texture_coordinate;

uniform vec3 extra_color;

uniform sampler2D box_texture;
uniform sampler2D happy_texture;

out vec4 FragColor;

void main()
{
  FragColor = mix(texture(box_texture, texture_coordinate),
                  vec4(extra_color.xyz, 1.0),
                  0.2);
}