summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/skybox.frag5
-rw-r--r--assets/shaders/skybox.vert3
2 files changed, 5 insertions, 3 deletions
diff --git a/assets/shaders/skybox.frag b/assets/shaders/skybox.frag
index 242477d..d2f3844 100644
--- a/assets/shaders/skybox.frag
+++ b/assets/shaders/skybox.frag
@@ -4,8 +4,9 @@ out vec4 FragColor;
in vec3 TexCoords;
-uniform samplerCube cubemap;
+uniform samplerCube cubeMap;
void main() {
- FragColor = texture(cubemap, TexCoords);
+ FragColor = texture(cubeMap, TexCoords);
+ // FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}
diff --git a/assets/shaders/skybox.vert b/assets/shaders/skybox.vert
index 57c6399..8db1f4f 100644
--- a/assets/shaders/skybox.vert
+++ b/assets/shaders/skybox.vert
@@ -14,5 +14,6 @@ out vec3 TexCoords;
void main() {
TexCoords = inPosition;
- gl_Position = cam.proj * cam.view * vec4(inPosition, 1.0);
+ vec4 pos = cam.proj * cam.view * vec4(inPosition, 1.0);
+ gl_Position = pos.xyww;
}