projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Skybox
[opengl.git]
/
skyboxfrag.glsl
diff --git a/skyboxfrag.glsl
b/skyboxfrag.glsl
new file mode 100644
(file)
index 0000000..
90c7ebe
--- /dev/null
+++ b/
skyboxfrag.glsl
@@ -0,0
+1,10
@@
+#version 330
+
+in vec3 texCoords;
+out vec4 fragColor;
+
+uniform samplerCube skybox;
+
+void main() {
+ fragColor = texture(skybox, texCoords);
+}