Age | Commit message (Collapse) | Author |
|
processed before calling the callback, instead of after they have all
been processed, because the callbacks may readd them.
|
|
|
|
|
|
Refactor physics force and impulse code to use (force, position) order
|
|
HTML5 fixes, refactor, audio fallback, fixed FPS.
|
|
Hopefully a good tradeoff between latency and performance on most
browsers.
|
|
Environment: Refactor code for readability + more
|
|
Make all String integer conversion methods be 64-bit
|
|
- Makes all boolean setters/getters consistent.
- Fixes bug where `glow_hdr_bleed_scale` was not used.
- Split CameraEffects to their own source file.
- Reorder all Environment method and properties declarations,
definitions and bindings to be consistent with each other
and with the order of property bindings.
- Bind missing enum values added with SDFGI.
- Remove unused SDFGI enhance_ssr boolean.
- Sync doc changes after SDFGI merge and other misc changes.
|
|
|
|
Expose shape property for shape query parameters classes
|
|
Fix missing DEFVAL in RenderingDevice.storage_buffer_create
|
|
Trigger broadphase update when changing collision layer/mask.
|
|
|
|
|
|
check for collision layer/mask changes in 2D hash grid broadphase update.
|
|
Prevents usage of return in main shader functions
|
|
|
|
|
|
Move GI to a deferred pass
|
|
Co-authored-by: PouleyKetchoupp <pouleyketchoup@gmail.com>
|
|
|
|
Also ensure that default closest_safe and closest_unsafe values are
defined in cast_motion() and before cast_motion() is called.
|
|
|
|
Expose disable_render_loop property to GDScript
|
|
|
|
Add keyboard layout enumeration / set / get functions.
|
|
|
|
Linux/X11), remove latin variant function.
|
|
broadphase 2D and 3D.
|
|
|
|
|
|
|
|
|
|
|
|
When using the default setting (layer 1 set only) nothing is stored in the tscn file for a Light2D, hence it relies on the value in the constructor.
The problem is the constructed value is 1 in Light2D, and -1 in RasterizerCanvas::Light. -1 results in all bits being set so all occluders are shown, rather than just those in layer 1.
This PR changes Rasterizer::Canvas constructor to set to 1. An alternative is to have -1 as the value for layer 1 throughout.
(cherry picked from commit bf54fa5a62a980f5c4339137f9e2c6147642962c)
|
|
Extra `_2d` suffixes are removed from 2D methods accoringly.
|
|
|
|
Fix Android LineEdit editing bugs
|
|
|
|
AudioDriverJavaScript buffer size calculation.
|
|
Each driver used to define the (same) project settings values
`audio/mix_rate` and `audio/output_latency`, but the setting names are
not driver specific.
Overriding is still possible via platform tags.
|
|
The added `#` prevents clang-format from misinterpreting the meaning
of this statement and thus messing up the formatting of the next
lines up until the first `layout` statement.
Similarly, a semicolon is now enforced on `versions` defines to
prevent clang-format from messing up formatting and putting them
all on a single line. Note: In its current state the code will
ignore chained statements on a single line separated by a semicolon.
Also removed some extraneous lines missed in previous style changes
or added by mistake with said changes (e.g. after uniform definitions
that clang-format messes up somewhat too, but we live with it).
|
|
|
|
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
|
|
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.
|
|
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.
|
|
Using clang-tidy's `modernize-redundant-void-arg`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html
|
|
Using clang-tidy's `modernize-use-bool-literals`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
|
|
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
|