godot/servers/visual
lawnjelly 847a37b196 Change 2d transform snapping from floor to round
Two common problems have emerged as a result of transform snapping:
1) Camera jitter with a camera following a snapped object
2) Pixel gaps between e.g. a platform and a player, where a platform rounds down and a player rounds up

Using round seems to greatly reduce problems due to camera jitter. It also may prove better for  pixel gaps because pixel art is often designed on a grid, so whole numbers are too expected, which are unstable with floor().
2021-02-28 14:34:39 +00:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
rasterizer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rasterizer.h Implement new CPU lightmapper 2021-01-14 18:05:56 +01:00
shader_language.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
shader_language.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
shader_types.cpp Add METALLIC to light() built-ins 2021-02-02 13:02:46 +01:00
shader_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server_canvas.cpp Change 2d transform snapping from floor to round 2021-02-28 14:34:39 +00:00
visual_server_canvas.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server_globals.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server_globals.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server_raster.cpp Partially revert change to BVH render tree update method 2021-01-20 19:15:07 +00:00
visual_server_raster.h Implement new CPU lightmapper 2021-01-14 18:05:56 +01:00
visual_server_scene.cpp Modernize Thread 2021-02-18 11:58:08 +01:00
visual_server_scene.h Modernize atomics 2021-02-18 12:23:25 +01:00
visual_server_viewport.cpp Change 2d transform snapping from floor to round 2021-02-28 14:34:39 +00:00
visual_server_viewport.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server_wrap_mt.cpp Modernize atomics 2021-02-18 12:23:25 +01:00
visual_server_wrap_mt.h Modernize atomics 2021-02-18 12:23:25 +01:00