diff options
| author | tech kaczynski <tk@techkaczynski.dev> | 2026-11-04 19:06:21 +1000 |
|---|---|---|
| committer | tech kaczynski <tk@techkaczynski.dev> | 2026-11-04 19:06:21 +1000 |
| commit | 064943d1541e2285cc39b6d737093569b1787f7d (patch) | |
| tree | 5892e9d8bba08e516a4b065f7a717f46d9357d9f /cam.c | |
| parent | a318ed02db01b0b9c754ebfeb02c51f3ffa15fd0 (diff) | |
refactored rendering into render texture.main
Diffstat (limited to 'cam.c')
| -rw-r--r-- | cam.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #include "cam.h" +#include "app.h" #include "reasings.h" #include <rcamera.h> @@ -410,7 +411,7 @@ cam_ctrl_orbit(void) { Vec3 up = Vector3Normalize( Vector3CrossProduct(right, forward)); - f32 scale = view_height / GetScreenHeight(); + f32 scale = view_height / app.scr_rec.height; Vec3 offset = Vector3Add( Vector3Scale(right, -delta.x * scale), Vector3Scale(up, delta.y * scale)); |
