summaryrefslogtreecommitdiff
path: root/source/lessons/instanced_rendering/basic quads/shaders/cubemap.fs.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'source/lessons/instanced_rendering/basic quads/shaders/cubemap.fs.glsl')
-rw-r--r--source/lessons/instanced_rendering/basic quads/shaders/cubemap.fs.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lessons/instanced_rendering/basic quads/shaders/cubemap.fs.glsl b/source/lessons/instanced_rendering/basic quads/shaders/cubemap.fs.glsl
new file mode 100644
index 0000000..72dfe4c
--- /dev/null
+++ b/source/lessons/instanced_rendering/basic quads/shaders/cubemap.fs.glsl
@@ -0,0 +1,9 @@
+#version 330 core
+
+in vec3 TexCoords;
+uniform samplerCube skybox;
+out vec4 FragColor;
+
+void main() {
+ FragColor = texture(skybox, TexCoords);
+};