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

in vec2 texture_coordinate;

uniform sampler2D box_texture;
uniform sampler2D happy_texture;

out vec4 FragColor;

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