diff options
author | sanine <sanine.not@pm.me> | 2023-04-07 00:53:03 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-04-07 00:53:03 -0500 |
commit | 3c9ba50944f1b136125e1191ccbc49fda1381123 (patch) | |
tree | f52a32da115d02eaeefe616122f607c92c62e57c /fragment.glsl | |
parent | f91a730b3a9ddd532c2ba9ff4f8b120a8ca2fa81 (diff) |
renormalize line endings
Diffstat (limited to 'fragment.glsl')
-rw-r--r-- | fragment.glsl | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/fragment.glsl b/fragment.glsl index c6ef691..532d1ac 100644 --- a/fragment.glsl +++ b/fragment.glsl @@ -1,17 +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);
-}
+#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); +} |