virtualx-engine/servers
lawnjelly eaf8e5ce52 Change CameraMatrix::get_viewport_size to get_viewport_half_extents
Fixes #26637.
Fixes #19900.

The viewport_size returned by get_viewport_size was previously incorrect, being half the correct value. The function is renamed to get_viewport_half_extents, and now returns a Vector2.

Code which called this function has also been modified accordingly.

This PR also fixes shadow culling when using ortho cameras, because the correct input for CameraMatrix::set_orthogonal should be the full HEIGHT from get_viewport_half_extents, and not half the width.

It also fixes state.ubo_data.viewport_size in rasterizer_scene_gles3.cpp to be the width and the height of the viewport in pixels as stated in the documentation, rather than the current value which is half the viewport extents in worldspace, presumed to be a bug.
2020-01-22 18:22:00 +00:00
..
arvr Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics Merge pull request #33615 from raphael10241024/fix_shape_change 2020-01-16 22:56:16 +01:00
physics_2d Merge pull request #33615 from raphael10241024/fix_shape_change 2020-01-16 22:56:16 +01:00
visual Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
arvr_server.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
arvr_server.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio_server.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio_server.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera_server.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera_server.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_2d_server.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_2d_server.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_server.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_server.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_server_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_server_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Adding a new Camera Server implementation to Godot. 2019-06-15 21:30:32 +10:00
server_wrap_mt_common.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server.cpp Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
visual_server.h Add multimesh format max for proper error checking 2020-01-16 13:31:17 -08:00