Voxel-Render
Voxel-Render copied to clipboard
Fix camera drift when the viewport height/width isn't divisible by 2
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.