summaryrefslogtreecommitdiff
path: root/assets/shaders/skybox.frag
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-18 16:17:23 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-18 16:17:23 +1000
commit7ec62c58e9560fc961ec3522490e40ad1d259c72 (patch)
treee7d6c9bb9efc9871fe2a4bc7e5f51a02f7d901ef /assets/shaders/skybox.frag
parentc43bee3ec89e0863b4195ca9298a007d3526a6d9 (diff)
wip skybox. make geometry owned and copied onto Mesh
Diffstat (limited to 'assets/shaders/skybox.frag')
-rw-r--r--assets/shaders/skybox.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/shaders/skybox.frag b/assets/shaders/skybox.frag
new file mode 100644
index 0000000..242477d
--- /dev/null
+++ b/assets/shaders/skybox.frag
@@ -0,0 +1,11 @@
+#version 410 core
+
+out vec4 FragColor;
+
+in vec3 TexCoords;
+
+uniform samplerCube cubemap;
+
+void main() {
+ FragColor = texture(cubemap, TexCoords);
+}