godot/servers/rendering
Alvin Wong 1bd66af54c Apply snap 2D transforms to pixel to viewport
We shall not leave the viewport transform to be rounded by the code for
rounding canvas items. Since the viewport transform is inverse to the
camera transform, we get incorrect rounding at the halfway point that
misaligns the viewport and the canvas item which the camera is
following.

Instead, reintroduce viewport rounding, but do it in a way that matches
the rounding of canvas items. Also take into account the half-pixel
offset of the centre point when viewport dimension is not divisible by
two.  For `CanvasLayer`s that follows viewport, take into account the
scale when rounding. Overall this should work better compared to the
rounding in Godot 4.2 (and earlier).
2024-09-23 20:34:11 +08:00
..
dummy Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
environment Reset SDFGI when changing editor scene tabs 2023-08-30 19:50:05 +03:00
renderer_rd Fix hash calculation for NTSliceKey 2024-09-22 21:08:18 +08:00
storage Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
renderer_canvas_cull.cpp Fix Parallax2D repeats being not relative to its transform 2024-08-19 11:43:16 +02:00
renderer_canvas_cull.h Fix Parallax2D repeats being not relative to its transform 2024-08-19 11:43:16 +02:00
renderer_canvas_render.cpp Avoid crashes when engine leaks canvas items and friends 2023-12-20 13:19:46 +01:00
renderer_canvas_render.h Fix Parallax2D repeats being not relative to its transform 2024-08-19 11:43:16 +02:00
renderer_compositor.cpp fix missing cleanup and null checks for various singletons 2024-06-18 01:05:30 -07:00
renderer_compositor.h Fix regression around OpenGL swapchain optimisation for OpenXR 2024-07-29 12:46:58 +10:00
renderer_geometry_instance.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
renderer_geometry_instance.h Expose RD::texture_native_handle 2023-06-14 09:58:08 +10:00
renderer_scene_cull.cpp Merge pull request #95503 from clayjohn/instance_none_crash 2024-09-03 11:43:08 +02:00
renderer_scene_cull.h Implement support for bicubic lightmap filtering 2024-08-19 09:52:09 +02:00
renderer_scene_occlusion_cull.cpp Jitter raster occlusion camera to reduce false positives. 2024-04-03 12:18:45 +01:00
renderer_scene_occlusion_cull.h Style: Apply new clang-format changes 2024-09-20 08:09:48 -05:00
renderer_scene_render.cpp Implement hooks into renderer 2024-02-18 21:54:21 +11:00
renderer_scene_render.h Implement support for bicubic lightmap filtering 2024-08-19 09:52:09 +02:00
renderer_viewport.cpp Apply snap 2D transforms to pixel to viewport 2024-09-23 20:34:11 +08:00
renderer_viewport.h Ensure MovieWriter output is in gamma space when using HDR 2D 2024-05-28 15:30:13 -07:00
rendering_context_driver.cpp Disable extra memory tracking by default 2024-08-24 20:52:39 -03:00
rendering_context_driver.h Disable extra memory tracking by default 2024-08-24 20:52:39 -03:00
rendering_device_binds.cpp Add String.is_valid_unicode_identifier() 2024-08-27 11:34:08 +08:00
rendering_device_binds.h Implement hooks into renderer 2024-02-18 21:54:21 +11:00
rendering_device_commons.cpp Make shader binary alignment handling simpler and more robust 2024-03-06 11:48:23 +01:00
rendering_device_commons.h Style: Apply new clang-format changes 2024-09-20 08:09:48 -05:00
rendering_device_driver.cpp Add support for enhanced barriers in D3D12. 2024-05-20 13:04:44 -03:00
rendering_device_driver.h Add debug utilities for Vulkan 2024-08-21 23:48:08 +02:00
rendering_device_graph.cpp Add debug utilities for Vulkan 2024-08-21 23:48:08 +02:00
rendering_device_graph.h Add debug utilities for Vulkan 2024-08-21 23:48:08 +02:00
rendering_device.compat.inc Add debug utilities for Vulkan 2024-08-21 23:48:08 +02:00
rendering_device.cpp [Editor,Servers]: Minor optimizations 2024-09-12 06:22:04 +10:00
rendering_device.h Add support for compiling with VS clang-cl toolset 2024-08-28 13:30:44 -05:00
rendering_light_culler.cpp Tighter light culling - fix directional lights colinear case 2024-05-10 09:13:05 +01:00
rendering_light_culler.h Tight shadow culling - increase epsilon to prevent flickering 2024-05-18 14:14:27 +01:00
rendering_method.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rendering_method.h Implement support for bicubic lightmap filtering 2024-08-19 09:52:09 +02:00
rendering_server_constants.h Fixed Timestep Interpolation (3D) 2024-07-07 22:15:23 +02:00
rendering_server_default.cpp [Editor,Servers]: Minor optimizations 2024-09-12 06:22:04 +10:00
rendering_server_default.h Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
rendering_server_globals.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rendering_server_globals.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub
shader_compiler.cpp Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
shader_compiler.h Fix broken sky shader 2024-09-13 08:53:26 +03:00
shader_language.cpp Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
shader_language.h Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
shader_preprocessor.cpp Add String.is_valid_unicode_identifier() 2024-08-27 11:34:08 +08:00
shader_preprocessor.h Extract ScriptInstance to simplify includes 2023-09-06 22:54:38 +02:00
shader_types.cpp Add CLIP_SPACE_FAR built-in to spatial shader 2024-08-27 08:48:46 +03:00
shader_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
shader_warnings.cpp Warn users when assigning VERTEX directly to POSITION due to compatibility breakage from reverse z changes 2024-04-12 10:38:35 -07:00
shader_warnings.h Warn users when assigning VERTEX directly to POSITION due to compatibility breakage from reverse z changes 2024-04-12 10:38:35 -07:00