summaryrefslogtreecommitdiff
path: root/demo.fs
diff options
context:
space:
mode:
Diffstat (limited to 'demo.fs')
-rw-r--r--demo.fs7
1 files changed, 5 insertions, 2 deletions
diff --git a/demo.fs b/demo.fs
index e43d761..84ed0fd 100644
--- a/demo.fs
+++ b/demo.fs
@@ -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);
}