summaryrefslogtreecommitdiff
path: root/drivers/gles2
AgeCommit message (Collapse)Author
2020-01-24Fix Softbody always spawns from world center [gles2]Eric Rybicki
Fixes #35373
2020-01-22Merge pull request #35406 from lawnjelly/ortho-shadowRémi Verschelde
Replace CameraMatrix::get_viewport_size with get_viewport_half_extents, shadow culling with ortho camera and other affected issues
2020-01-22Change CameraMatrix::get_viewport_size to get_viewport_half_extentslawnjelly
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-21Remove unused #if 0'ed codeRémi Verschelde
2020-01-16Merge pull request #35215 from clayjohn/multimesh-errorRémi Verschelde
Add multimesh format max for proper error checking
2020-01-16Add multimesh format max for proper error checkingclayjohn
2020-01-16Gracefully handle 3D textures in GLES2clayjohn
2020-01-16Disabled array initialization, const array and arr.length in shadersYuri Roubinsky
2020-01-16Merge pull request #35176 from clayjohn/csg-crashRémi Verschelde
Fix light related crashes
2020-01-16Merge pull request #35178 from clayjohn/GLES2-fix-lightmapRémi Verschelde
Fix array constructor for lightmaps
2020-01-15fix light related crashesclayjohn
2020-01-15Fix array constructor for lightmapsclayjohn
2020-01-15Add background mode keep to GLES2clayjohn
2020-01-12Fix light and multimesh crashesclayjohn
2020-01-08RasterizerCanvas: Use getornull to fetch light occluder polygonRémi Verschelde
Fixes #21286 when the occluder is not fully configured.
2020-01-06Add VisualServer methods to get the video adapter name and vendorHugo Locurcio
These methods can be used in scripts to retrieve the OpenGL `GL_RENDERER` and `GL_VENDOR` strings (respectively). This closes #28404.
2020-01-03Merge pull request #34794 from clayjohn/GLES2-trimesh-crashRémi Verschelde
Fix crash on trimesh_create
2020-01-03Fix crash on trimesh_create by making surface->data available in non-tool buildsclayjohn
2020-01-03Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fixRémi Verschelde
Fixed antialiasing option for Polygon2D with concave/hollow shapes
2020-01-01Fixed antialiasing option for Polygon2DPouleyKetchoupp
Some cases were not handled properly for Polygon2D after making changes in common code to fix Line2D antialiasing. Added an option for drawing polygons to differentiate the two use cases. Fixes #34568
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-19Always use 16 bit renderbuffer depth on WebGLclayjohn
2019-12-15fix shadow color in GLES2 by making sRGBclayjohn
2019-12-12Merge pull request #34251 from bojidar-bg/32993-lightoccluder-flipRémi Verschelde
Flip cull mode when rendering flipped Light2D and LightOccluder2D
2019-12-12Merge pull request #34262 from clayjohn/default_point_sizeRémi Verschelde
Add a default POINT_SIZE
2019-12-11Flip cull mode when rendering flipped Light2D and LightOccluder2DBojidar Marinov
Fixes #32993
2019-12-10Add a default POINT_SIZEclayjohn
2019-12-10Merge pull request #34238 from clayjohn/GLES2-use-renderbuffer-post-processRémi Verschelde
Use renderbuffer depth for post-process buffers when appropriate
2019-12-09Use renderbuffer depth for post-process buffers when appropriateclayjohn
2019-12-09Force 32 bit depth buffer for WebGLclayjohn
2019-12-05GLES2: Fix uninitialized members in ShaderGLES2::VersionRémi Verschelde
Fixes #34109.
2019-12-03Merge pull request #33857 from nekomatata/polygon-2d-antialiasingRémi Verschelde
Fixed antialiased option for Polygon2D
2019-12-03Merge pull request #33836 from clayjohn/blinn-fixRémi Verschelde
Fix Specular Blinn function
2019-11-29Removed duplicated conditional in GLES2PouleyKetchoupp
2019-11-28Fixed antialiased option for Polygon2D / Line2DPouleyKetchoupp
Polygon2D: The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing. Line2D: Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly. Fixes #26823
2019-11-26Use ANGLE multisample extensions for UWPGeorge Marques
2019-11-23Restructure depth_internalformat code to work on mobileclayjohn
This changes the code path so that `glRenderBufferStorage*` always uses values appropriate for renderbuffers and `glTexImage2D` never uses an internalformat meant for buffers. Fixes #33825.
2019-11-23glTexImage2D: Fix confusion between format and internal formatRémi Verschelde
The `format` parameter is similar to `internalFormat` but takes different values, and especially only `GL_DEPTH_COMPONENT` for depth, without size specifier. Cf. https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml Fixes a regression from #33278 and another occurrence.
2019-11-22Fix Specular Blinn functionclayjohn
2019-11-20Fix bugs introduced by IBL fixesclayjohn
2019-11-20Merge pull request #33583 from qarmin/fix_overflows_unitializedRémi Verschelde
Fix some overflows and unitialized variables
2019-11-20Fix some overflows and unitialized variablesRafał Mikrut
2019-11-20Merge pull request #33668 from clayjohn/Fix_environment_mapping_issuesRémi Verschelde
Fix issues with environment mapping
2019-11-19Fix issues with environment mappingclayjohn
2019-11-19Merge pull request #33720 from BastiaanOlij/fix_gles2_rgb8Rémi Verschelde
Need to use GL_RGB8 and GL_RGBA8 as the internal format for GLES2
2019-11-19Need to use GL_RGB8 and GL_RGBA8 as the internal format for GLES2Bastiaan Olij
2019-11-19Merge pull request #33527 from clayjohn/GLES2-bufferdata_optimizationRémi Verschelde
Improve glBufferSubData usage where safe
2019-11-17Fix negative light flickeringclayjohn
2019-11-11Improve glBufferSubData usage where safeclayjohn
2019-11-11Add special external MSAA modes for GLES2 Rift S/Quest and OpenXR optimisationBastiaan Olij