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 /vertex.glsl | |
parent | f91a730b3a9ddd532c2ba9ff4f8b120a8ca2fa81 (diff) |
renormalize line endings
Diffstat (limited to 'vertex.glsl')
-rw-r--r-- | vertex.glsl | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/vertex.glsl b/vertex.glsl index 1e9fb67..cb20d1f 100644 --- a/vertex.glsl +++ b/vertex.glsl @@ -1,21 +1,21 @@ -#version 410 core
-layout (location = 0) in vec3 in_position;
-layout (location = 1) in vec3 in_normal;
-layout (location = 2) in vec2 in_tex;
-
-uniform mat4 model;
-uniform mat4 view;
-uniform mat4 projection;
-
-out vec3 position;
-out vec3 normal;
-out vec2 tex;
-
-void main()
-{
- gl_Position = projection * view * model * vec4(in_position, 1.0);
- position = in_position;
- //normal = vec3(model * vec4(in_normal, 1.0f));
- normal = in_normal;
- tex = in_tex;
-}
+#version 410 core +layout (location = 0) in vec3 in_position; +layout (location = 1) in vec3 in_normal; +layout (location = 2) in vec2 in_tex; + +uniform mat4 model; +uniform mat4 view; +uniform mat4 projection; + +out vec3 position; +out vec3 normal; +out vec2 tex; + +void main() +{ + gl_Position = projection * view * model * vec4(in_position, 1.0); + position = in_position; + //normal = vec3(model * vec4(in_normal, 1.0f)); + normal = in_normal; + tex = in_tex; +} |