virtualx-engine/drivers
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
..
alsa Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
alsamidi Alsa MIDI input thread gets properly reinitialized on open. 2020-01-18 15:59:59 +01:00
coreaudio Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
coremidi Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
dummy Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
gl_context SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor defines 2019-07-03 09:59:04 +02:00
gles2 Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
gles3 Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
png Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
pulseaudio Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
unix Disable colored console output when standard output isn't a TTY 2020-01-04 04:04:08 +01:00
wasapi Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
windows Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
winmidi Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
xaudio2 Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_driver_types.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
register_driver_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub Remove convex_decomp in drivers/SCsub 2019-12-14 21:41:21 +09:00