summaryrefslogtreecommitdiff
path: root/fragment.glsl
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-03-29 00:01:54 -0500
committersanine <sanine.not@pm.me>2023-03-29 00:01:54 -0500
commit5a93fb6f6a8fb6f1dad821b407b4f4531bc23783 (patch)
treed7b7fb60868e2381bdd14efa357188ba3a27b804 /fragment.glsl
parent45dbe47d17303050cbea7c2c51e838acfe21c2fb (diff)
add image caching
Diffstat (limited to 'fragment.glsl')
-rw-r--r--fragment.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/fragment.glsl b/fragment.glsl
index 27dbbfa..c6ef691 100644
--- a/fragment.glsl
+++ b/fragment.glsl
@@ -5,11 +5,13 @@ in vec3 position;
in vec3 normal;
in vec2 tex;
+uniform float time;
uniform sampler2D ourTexture;
void main()
{
- FragColor = vec4(normal, 1.0f);
+ //FragColor = vec4(sin(time), cos(time), -sin(time), 1.0f);
+ //FragColor = vec4(normal, 1.0f);
//FragColor = vec4(tex, 1.0f, 1.0f);
- //FragColor = texture(ourTexture, TexCoord);
+ FragColor = texture(ourTexture, tex);
}