diff options
author | Phil Jones <philj56@gmail.com> | 2021-10-26 23:15:46 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-10-26 23:15:46 +0100 |
commit | 42679f7e53364e8de8de665ac7ba9b7e2dd1970b (patch) | |
tree | 14e145ea833097aba91f516f4cd124e49f5a2a14 /shaders/frag.frag | |
parent | c1e7ea47b25cdf7bf316ce522f9aa438b0b657c7 (diff) |
Add PNG background.
Diffstat (limited to 'shaders/frag.frag')
-rw-r--r-- | shaders/frag.frag | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/shaders/frag.frag b/shaders/frag.frag new file mode 100644 index 0000000..c6bdbde --- /dev/null +++ b/shaders/frag.frag @@ -0,0 +1,25 @@ +#version 300 es + +/* + * Copyright (C) 2021 Philip Jones + * + * Licensed under the MIT License. + * See either the LICENSE file, or: + * + * https://opensource.org/licenses/MIT + * + * I don't think you can really copyright this shader though :) + */ + +precision highp float; + +in vec2 Texcoord; + +out vec4 FragColor; + +uniform sampler2D tex; + +void main() +{ + FragColor = texture(tex, Texcoord); +} |