diff options
Diffstat (limited to 'demo.fs')
-rw-r--r-- | demo.fs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,10 +1,13 @@ #version 330 core -in vec4 color; +in vec2 texture_coordinate; + +uniform sampler2D box_texture; +uniform sampler2D happy_texture; out vec4 FragColor; void main() { - FragColor = color; + FragColor = mix(texture(box_texture, texture_coordinate), texture(happy_texture, vec2(1,1)-texture_coordinate), 0.2); } |