godot/drivers/gles2
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 Fix array constructor for lightmaps 2020-01-15 17:41:46 -08:00
rasterizer_canvas_gles2.cpp RasterizerCanvas: Use getornull to fetch light occluder polygon 2020-01-08 11:29:15 +01:00
rasterizer_canvas_gles2.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_gles2.cpp Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
rasterizer_gles2.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_scene_gles2.cpp Change CameraMatrix::get_viewport_size to get_viewport_half_extents 2020-01-22 18:22:00 +00:00
rasterizer_scene_gles2.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_storage_gles2.cpp Merge pull request #35215 from clayjohn/multimesh-error 2020-01-16 23:06:20 +01:00
rasterizer_storage_gles2.h Add VisualServer methods to get the video adapter name and vendor 2020-01-06 00:37:56 +01:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00
shader_compiler_gles2.cpp Disabled array initialization, const array and arr.length in shaders 2020-01-16 11:46:11 +03:00
shader_compiler_gles2.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
shader_gles2.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
shader_gles2.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00