summaryrefslogtreecommitdiffstats
path: root/core/math
Commit message (Collapse)AuthorAgeFilesLines
* Remove more deprecated methods and codeRémi Verschelde2020-02-131-8/+2
|
* Remove deprecated decimals builtinRémi Verschelde2020-02-122-8/+0
| | | | Replaced by 'step_decimals' in 3.2 via #21425.
* Vulkan: Move thirdparty code out of drivers, style fixesRémi Verschelde2020-02-112-4/+4
| | | | | | | - `vk_enum_string_helper.h` is a generated file taken from the SDK (Vulkan-ValidationLayers). - `vk_mem_alloc.h` is a library from GPUOpen: https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
* Modified rendering to use cluster instead of fowardJuan Linietsky2020-02-114-0/+61
|
* Fix code formatting issues and VS compilationRémi Verschelde2020-02-112-0/+60
| | | | | | | Also temporarily disable multicheck build so that we get a full build even when there are style issues on Vulkan. Fixes #33356.
* Several fixes to GIProbesJuan Linietsky2020-02-111-1/+1
|
* Fix Vector3 ambiguities and out of bounds init.bruvzg2020-02-111-2/+2
|
* GIProbes working.Juan Linietsky2020-02-113-0/+277
|
* Reflection probes workingJuan Linietsky2020-02-112-3/+3
|
* Rewrote large part of rendering, omni and spot shadows now work.Juan Linietsky2020-02-112-0/+23
|
* Yay very basic 3D (only white) finally shows.Juan Linietsky2020-02-112-0/+8
|
* Merge pull request #35682 from nathanwfranke/canvas-cull-control-fixRémi Verschelde2020-02-081-0/+13
|\ | | | | Fix bug where canvas culls things at origin with size 0
| * Fix bug where Control at origin with 0 size not renderednathanwfranke2020-02-071-0/+13
| | | | | | | | | | | | | | | | Make a new method instead to make the code more elegant Move Function down a bit
* | Add do..while(0) wrappers to macros without one.Marcel Admiraal2020-02-051-1/+1
|/ | | | | | | | | | | | | - Add do..while(0) wrapper to ERR_FAIL_NULL macros. - Add do..while(0) wrapper to ERR_FAIL_COND macros. - Add do..while(0) wrapper to ERR_CONTINUE macros. - Add do..while(0) wrapper to ERR_BREAK macros. - Add do..while(0) wrapper to CRASH_COND macros. - Add do..while(0) wrapper to ERR_FAIL macros. - Add do..while(0) wrapper to ERR_PRINT macros. - Add do..while(0) wrapper to WARN_PRINT macros. - Add do..while(0) wrapper to WARN_DEPRECATED macros. - Add do..while(0) wrapper to CRASH_NOW macros.
* Add explanations for errors related to Vector/Quat normalizationHugo Locurcio2020-01-246-16/+16
|
* Change CameraMatrix::get_viewport_size to get_viewport_half_extentslawnjelly2020-01-222-7/+5
| | | | | | | | | | | | | 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.
* Update copyright statements to 2020Rémi Verschelde2020-01-0151-102/+102
| | | | | | | | | | | 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.
* Add ord() function to Expression classDanil Alexeev2019-12-292-0/+29
| | | | | The ord() function was recently added in GDScript and VisualScript, but was missed in the Expression class.
* Drop b2d_convexdecomp. no longer necessary.Rémi Verschelde2019-12-132-11/+0
| | | | | | | We now use `thirdparty/misc/triangulator.h` for all physics-related (collision, navigation) triangulation needs. Follow-up to #34293.
* Merge pull request #34040 from qarmin/unused_variable_more_precise_numbersRémi Verschelde2019-12-102-8/+8
|\ | | | | Removed unused variables, add some constants numbers
| * Removed unused variables, add some constants numbersRafał Mikrut2019-12-102-8/+8
| |
* | Fix severe performance drop while deflating polylinesAndrii Doroshenko (Xrayez)2019-12-031-1/+1
|/ | | | | | | | Underscaled arc tolerance produced very small values so that changes to this parameter were negligible when scaled internally, hence significant performance drop (lots of intermediate points inserted in an arc). Now the performance is mostly the same compared to other types of offsetting (SQUARE, MITER).
* Merge pull request #33583 from qarmin/fix_overflows_unitializedRémi Verschelde2019-11-201-0/+4
|\ | | | | Fix some overflows and unitialized variables
| * Fix some overflows and unitialized variablesRafał Mikrut2019-11-201-0/+4
| |
* | Fixed bug caused by a copy/paste error in Face3::get_closest_point_tostoofin2019-11-191-1/+1
|/ | | | | s * edge0 = -d / a * edge0 = -edge0⋅v0 / (edge0⋅edge0) * edge0 = vector projection of -v0 onto edge0 By incorrectly using -e/c instead of -d/a, Face3::get_closest_point_to was returning the wrong point in certain cases. Specifically, I noticed it returning vertex[0] when it should have been returning vertex[1].
* Emit an error rather than crash in A*Shiqing2019-11-081-6/+6
|
* Merge pull request #32477 from aaronfranke/equal-approx-separateRémi Verschelde2019-11-0721-32/+69
|\ | | | | Make is_equal_approx separate and make == exact again
| * Expose is_equal_approx and restore == to be exact againAaron Franke2019-10-143-6/+7
| | | | | | | | | | | | This commit changes behavior for GDScript and C#. Also did some organizing of the order to logically group related methods, mostly for Rect2 and AABB.
| * Replace vector == and is_zero_approx(distance) with is_equal_approxAaron Franke2019-10-145-14/+5
| | | | | | | | Internal changes only
| * Make is_equal_approx separate for structuresAaron Franke2019-10-1418-15/+60
| | | | | | | | This commit adds exposed behavior for C#
* | Merge pull request #30556 from kawa-yoiko/astar-directedRémi Verschelde2019-11-072-35/+76
|\ \ | | | | | | Improve support for directed graphs in A*; docs update included
| * | Reduce memory usage for edges in A* and add testsShiqing2019-09-282-37/+69
| | |
| * | Improve support for directed graphs in AStarShiqing2019-09-112-26/+35
| | |
* | | Fix "seperate" typosAaron Franke2019-10-311-1/+1
| | |
* | | [Mono] Change Plane intersect methods to return nullable Vector3Aaron Franke2019-10-081-1/+1
| |/ |/|
* | Merge pull request #32478 from AlexHolly/fix-rect2-enclosesRémi Verschelde2019-10-081-2/+2
|\ \ | | | | | | Make Rect2.encloses return true on same size
| * | Make Rect2.encloses return true on same sizeAlexander Holland2019-10-021-2/+2
| | |
* | | Remove circular include between core/typedefs.h and core/error_macros.hMarcel Admiraal2019-10-081-0/+2
| | |
* | | Remove circular dependency between Vector3 and Basis.Marcel Admiraal2019-10-073-23/+18
|/ /
* | Merge pull request #32249 from hbina/a_star_ignore_disabledRémi Verschelde2019-09-272-8/+8
|\ \ | | | | | | Add option to consider disable points
| * | Add option to consider disable pointsHanif Bin Ariffin2019-09-272-8/+8
| |/ | | | | | | | | | | Previously, disabled points will not be considered when performing get_closest_point. This commit changes that by introducing an additional flag for this behavior. Related issue: #31814
* | Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-252-5/+2
|\ \ | | | | | | Added some obvious errors explanations
| * | Added some obvious errors explanationsqarmin2019-09-252-5/+2
| |/
* | Fix copyright headers and style issuesRémi Verschelde2019-09-241-1/+1
| |
* | Merge pull request #32275 from godotengine/skin_supportRémi Verschelde2019-09-232-0/+186
|\ \ | | | | | | Added skin support and simplified APIs to override bone position + glTF 2.0 import fixes
| * | GLTF2 Import Fixes - Skin(s) to Skeleton - Skin SupportMarios Staikopoulos2019-09-202-0/+186
| |/
* / Changed some code found by Clang Tidy and Coverityqarmin2019-09-221-1/+1
|/
* Merge pull request #31756 from raphael10241024/fast_aabb_transformRémi Verschelde2019-09-031-16/+23
|\ | | | | a faster function to transform aabb
| * a faster funtion to transform aabbRaphaelHunter2019-08-291-16/+23
| |
* | Check for exact equality before approximate equalityAaron Franke2019-09-011-0/+10
| |