godot/scene
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
..
2d Validate input in (CPU)Particles set_emission_shape() 2020-01-16 11:08:51 +01:00
3d Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
animation Fix SkeletonIK not playing animation if more than one IK-Bone is active 2020-01-16 20:22:15 +01:00
audio Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
debugger Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gui Merge pull request #35183 from YeldhamDev/scrollbar_regression 2020-01-16 07:56:05 +01:00
main SceneTree: Abort change_scene if we're quitting 2020-01-19 22:08:40 +01:00
resources Destroys FreeType library on load error 2020-01-20 11:00:51 +08:00
register_scene_types.cpp Fix AnimationTree not available when compiled with disable_3d 2020-01-07 00:04:30 -03:00
register_scene_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
scene_string_names.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
scene_string_names.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Implement game camera override 2019-10-23 02:51:32 +01:00