summaryrefslogtreecommitdiff
path: root/src/new_render/skybox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/new_render/skybox.c')
-rw-r--r--src/new_render/skybox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_render/skybox.c b/src/new_render/skybox.c
index 8ac8356..b054366 100644
--- a/src/new_render/skybox.c
+++ b/src/new_render/skybox.c
@@ -128,7 +128,8 @@ void Skybox_Draw(Skybox* skybox, Camera camera) {
// Shader data
Mat4 view, proj;
- Camera_ViewProj(&camera, 1000, 1000, &view, &proj);
+ u32x2 dimensions = GPU_Swapchain_GetDimensions();
+ Camera_ViewProj(&camera, dimensions.x, dimensions.y, &view, &proj);
Mat4 new = mat4_ident();
new.data[0] = view.data[0];
new.data[1] = view.data[1];