From 01d598220b403f4ac4da3b7aa1f0ce398be3198f Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 23:10:11 +1000 Subject: skybox works --- assets/shaders/skybox.vert | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'assets/shaders/skybox.vert') 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; } -- cgit v1.2.3-70-g09d2