aboutsummaryrefslogtreecommitdiffstats
path: root/skybox.frag
diff options
context:
space:
mode:
Diffstat (limited to 'skybox.frag')
-rw-r--r--skybox.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/skybox.frag b/skybox.frag
new file mode 100644
index 0000000..273fa9c
--- /dev/null
+++ b/skybox.frag
@@ -0,0 +1,11 @@
+#version 330 core
+
+in vec3 tex_coords;
+out vec4 color;
+
+uniform samplerCube skybox;
+
+void main()
+{
+ color = texture(skybox, tex_coords);
+}