godot/scene/3d
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
..
area.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
area.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
arvr_nodes.cpp Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
arvr_nodes.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio_stream_player_3d.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
audio_stream_player_3d.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
baked_lightmap.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
baked_lightmap.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
bone_attachment.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
bone_attachment.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
camera.cpp Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
camera.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_object.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_object.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_polygon.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_shape.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
collision_shape.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
cpu_particles.cpp Validate input in (CPU)Particles set_emission_shape() 2020-01-16 11:08:51 +01:00
cpu_particles.h Validate input in (CPU)Particles set_emission_shape() 2020-01-16 11:08:51 +01:00
gi_probe.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
gi_probe.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
immediate_geometry.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
immediate_geometry.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
interpolated_camera.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
interpolated_camera.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
light.cpp Merge pull request #34720 from Calinou/light-gizmo-color-by-light 2020-01-02 13:59:10 +01:00
light.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
listener.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
listener.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
mesh_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
multimesh_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
multimesh_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation_mesh.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation_mesh.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
navigation.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
particles.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
path.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_body.cpp Fixes get_floor_normal() returning the user defined floor_normal. 2020-01-15 10:13:35 +01:00
physics_body.h Added function to expose floor normal, useful to correctly calculate player velocity. 2020-01-10 14:58:19 +01:00
physics_joint.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
physics_joint.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
portal.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
portal.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
position_3d.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
position_3d.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
proximity_group.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
proximity_group.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
ray_cast.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
ray_cast.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
reflection_probe.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
reflection_probe.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
remote_transform.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
remote_transform.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
room_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
room_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Fix uses of [].append instead of env.add_source_files() 2019-07-22 15:08:32 +02:00
skeleton.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
skeleton.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
soft_body.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
soft_body.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial_velocity_tracker.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial_velocity_tracker.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spatial.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spring_arm.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
spring_arm.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
sprite_3d.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
sprite_3d.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
vehicle_body.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
vehicle_body.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visibility_notifier.cpp Fix wrong disconnect in callback in VisibilityNotifier 3D 2020-01-02 15:09:26 +01:00
visibility_notifier.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_instance.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_instance.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
voxel_light_baker.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
voxel_light_baker.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
world_environment.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
world_environment.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00