summaryrefslogtreecommitdiff
path: root/assets/shaders/skybox.vert
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-18 23:10:11 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-18 23:10:11 +1000
commit01d598220b403f4ac4da3b7aa1f0ce398be3198f (patch)
tree1408b120506f29d3a2d6b3b29a0c91fc1b1371eb /assets/shaders/skybox.vert
parent544aac70015b6b075b172c42dd2d90dee3d029c0 (diff)
skybox works
Diffstat (limited to 'assets/shaders/skybox.vert')
-rw-r--r--assets/shaders/skybox.vert3
1 files changed, 2 insertions, 1 deletions
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;
}