godot/drivers/gles3
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
..
shaders Merge pull request #35310 from akien-mga/gles3-irradiance-small-optimization 2020-01-19 18:55:51 +01:00
rasterizer_canvas_gles3.cpp Add multimesh format max for proper error checking 2020-01-16 13:31:17 -08:00
rasterizer_canvas_gles3.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_gles3.cpp Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
rasterizer_gles3.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_scene_gles3.cpp Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
rasterizer_scene_gles3.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_storage_gles3.cpp Merge pull request #35310 from akien-mga/gles3-irradiance-small-optimization 2020-01-19 18:55:51 +01:00
rasterizer_storage_gles3.h Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
SCsub
shader_compiler_gles3.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
shader_compiler_gles3.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
shader_gles3.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
shader_gles3.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00