skybox working
[demo] / gl_shaders / sky.v.glsl
diff --git a/gl_shaders/sky.v.glsl b/gl_shaders/sky.v.glsl
new file mode 100644 (file)
index 0000000..84097a0
--- /dev/null
@@ -0,0 +1,14 @@
+#version 450
+
+uniform mat4 mviewproj;
+
+layout(location = 1) in vec3 attr_pos;
+layout(location = 2) in vec3 attr_normal;
+
+out vec3 normal;
+
+void main()
+{
+       gl_Position = mviewproj * vec4(attr_pos, 1.0);
+       normal = attr_normal;
+}
\ No newline at end of file