summaryrefslogtreecommitdiff
path: root/demo.fs
diff options
context:
space:
mode:
Diffstat (limited to 'demo.fs')
-rw-r--r--demo.fs4
1 files changed, 3 insertions, 1 deletions
diff --git a/demo.fs b/demo.fs
index 84ed0fd..03159de 100644
--- a/demo.fs
+++ b/demo.fs
@@ -9,5 +9,7 @@ out vec4 FragColor;
void main()
{
- FragColor = mix(texture(box_texture, texture_coordinate), texture(happy_texture, vec2(1,1)-texture_coordinate), 0.2);
+ FragColor = mix(texture(box_texture, texture_coordinate),
+ vec4(texture(happy_texture, texture_coordinate).xyz, 1.0),
+ 0.2);
}