summaryrefslogtreecommitdiffstats
path: root/scene/3d/voxelizer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change some math macros to constexprkobewi2022-03-091-1/+1
| | | | Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #53525 from Calinou/comments-replace-visual-serverRémi Verschelde2021-10-071-1/+1
|\ | | | | Replace references to VisualServer in code comments with RenderingServer
| * Replace references to VisualServer in code comments with RenderingServerHugo Locurcio2021-10-071-1/+1
| | | | | | | | VisualServer no longer exists in the `master` branch.
* | Remove debugging print from the VoxelGI bakerHugo Locurcio2021-10-071-1/+0
|/
* Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra2021-09-211-4/+4
|
* Fix some unnecessary includesAaron Franke2021-08-131-5/+0
|
* Use real_t in 3D nodesAaron Franke2021-08-031-21/+21
|
* Use is_equal_approx in more placesAaron Franke2021-07-211-3/+3
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-3/+3
|
* Rename GI Classesreduz2021-06-051-7/+7
| | | | | | | * GIProbe is now VoxelGI * BakedLightmap is now LightmapGI As godot adds more ways to provide GI (as an example, SDFGI in 4.0), the different techniques (which have different pros/cons) need to be properly named to avoid confusion.
* Rename Transform to Transform3D in coreAaron Franke2021-06-031-5/+5
|
* Rename Texture.get_data() to get_image()Marcel Admiraal2021-03-281-2/+2
|
* Fixes small typos and grammar correctionAnshul7sp12021-03-121-2/+2
|
* Initialize class variables with default values in scene/ [1/2]Rafał Mikrut2021-02-071-3/+0
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-1/+1
|
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-1/+0
|
* Split `Geometry` singleton into `Geometry2D` and `Geometry3D`Andrii Doroshenko (Xrayez)2020-05-271-5/+5
| | | | Extra `_2d` suffixes are removed from 2D methods accoringly.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-15/+29
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-42/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* New lightmapperJuan Linietsky2020-05-101-200/+5
| | | | | | | -Added LocalVector (needed it) -Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too) -Fixes and changes all around the place -Added library for 128 bits fixed point (required for Delaunay3D)
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-15/+30
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Fix more GCC -Wmaybe-uninitialized warningsRémi Verschelde2020-04-201-12/+6
| | | | Fixes #38005.
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-1/+1
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-27/+27
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Fix various GCC compilation warnings after Vulkan mergeRémi Verschelde2020-02-141-1/+1
| | | | Part of #36132.
* Vulkan: Move thirdparty code out of drivers, style fixesRémi Verschelde2020-02-111-2/+2
| | | | | | | - `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
* Fixed uninitialized memory bug in voxelizerJuan Linietsky2020-02-111-1/+1
|
* GIProbe now generates a distance field on bake using CPU, for better ↵Juan Linietsky2020-02-111-0/+116
| | | | compatibility
* GIProbes working.Juan Linietsky2020-02-111-0/+1108