Voxel-Render icon indicating copy to clipboard operation
Voxel-Render copied to clipboard

Fix camera drift when the viewport height/width isn't divisible by 2

Open rafa-br34 opened this issue 11 months ago • 1 comments

When screen_width or screen_height isn't divisible by 2 the camera will drift by a small amount every frame, the simplest way to fix this is to modulo screen_width/screen_height by 2, divide by 2, and then offset the cursor by it.

rafa-br34 avatar Mar 09 '24 02:03 rafa-br34