diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-09 10:55:50 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-09 10:55:50 -0500 |
commit | 2a14abecaee073aef1f1966bb397d6086b2e4785 (patch) | |
tree | 5be4f00446867f536050de7903e7d4bdf85eed97 /shaders/mesh.frag | |
parent | 40c634a1650b2b666f92d1eafa3271dbe5a33b69 (diff) |
refactor: rename transform -> node
Diffstat (limited to 'shaders/mesh.frag')
-rw-r--r-- | shaders/mesh.frag | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/shaders/mesh.frag b/shaders/mesh.frag new file mode 100644 index 0000000..532d1ac --- /dev/null +++ b/shaders/mesh.frag @@ -0,0 +1,17 @@ +#version 410 core +out vec4 FragColor; + +in vec3 position; +in vec3 normal; +in vec2 tex; + +uniform float time; +uniform sampler2D ourTexture; + +void main() +{ + //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, tex); +} |