Rémi Verschelde
5b8a1314bd
SCons: Fix Linux arm64 build for theora and libvpx
...
The architecture handling in 3.x is all over the place, and I'm not
going to start a major refactor like I did for 4.0 so late in its life
cycle.
So let's add more hacks! ⚔️
This requires manually passing `arch=arm64` when compiling, but this is
already the case for other parts of the codebase.
2023-12-08 12:56:52 +01:00
Filipe Rinaldi
45c76995dd
Fix arm64 build when using Clang
...
The commit b5a8055b5c
should target GCC builds only as
-flax-vector-conversions has different behaviour in Clang and is
currently making the build fail.
Signed-off-by: Filipe Rinaldi <filipe.rinaldi@gmail.com>
(cherry picked from commit 2841144096
)
2023-12-08 12:32:51 +01:00
Rémi Verschelde
dede8d384f
embree: Fix Linux ARM64 build with `-flax-vector-conversions`
...
This is a change done upstream in the `devel3` branch for 3.13.6:
82ca6b5ccb
They also seem to define it for macOS, but for us it breaks the build...
¯\_(ツ)_/¯
Also change wrong use of CPPFLAGS (pre-processor) where CXXFLAGS (C++)
makes more sense.
(cherry picked from commit b5a8055b5c
)
2023-12-08 12:32:14 +01:00
Haoyu Qiu
f32db73cd2
Allow dragging editable children
2023-12-06 16:26:37 +08:00
Aaron Franke
ab9ed3245d
[3.x] Add "position" as an alias for "translation" in Spatial
2023-12-05 17:25:48 -06:00
David Snopek
5ea11fb481
Fix touch events in WebXR with an "immersive-ar" session
2023-11-29 14:54:45 -06:00
Zach Coleman
ffe86eef04
[iOS] Add APP_PAUSED and APP_RESUMED MainLoop notifications
2023-11-22 12:03:53 -05:00
Zach Coleman
f330bea7a0
[3.x] Make OSIPhone::get_screen_refresh_rate respect iOS Low Power Mode
2023-11-22 11:56:12 -05:00
Hugo Locurcio
4fefb136ea
Backport DirectionalLight `fade_start` property to `3.x`
...
- Implement shadow fading when using the Orthogonal shadow mode
(like in `master`).
This allows customizing the distance at which directional shadows
start to fade away. Shadow fading will also always start at the same
distance now, regardless of the current shadow mode in use.
This is useful for enclosed levels to prevent shadows from fading
at all with a well-tuned maximum distance.
The default fade start value (0.8) results in fading happening later
in the distance compared to the previous behavior, where fading started
from the last shadow split distance (0.6 in PSSM 4 Splits and
0.1 in PSSM 2 Splits).
2023-11-20 12:41:55 +01:00
Hugo Locurcio
8f12a01d45
Alias `platform=web` SCons option to `platform=javascript`
...
This makes build scripts forward-compatible, as was already done
for other platforms that were renamed in 4.0.
2023-11-16 15:49:44 +01:00
Rémi Verschelde
e96c42f0e1
Merge pull request #84279 from m4gr3d/update_godot_app_launch_mode_3x
...
[3.x] Update the `launchMode` for the `GodotApp` activity to allow other activities to be part of the same task
2023-11-15 18:28:18 +01:00
Fabio Alessandrelli
d8ea68d3dd
[Core] Fix File.get_buffer returning wrong length
...
File.get_buffer always returned as many bytes as requested (even when
EOF was reached), this resulted in random bytes being returned when
overflowing.
2023-11-15 12:49:01 +01:00
lawnjelly
8ca631a466
Shadow volume culling and tighter shadow caster culling
...
Existing shadow caster culling using the BVH takes no account of the camera. This PR adds the highly encapsulated class VisualServerLightCuller which can cut down the casters in the shadow volume to only those which can cast shadows on the camera frustum.
This is used to:
* More accurately defer dirty updates to shadows when the shadow volume does not intersect the camera frustum.
* Tighter cull shadow casters to the view frustum.
Lights dirty state is now automatically managed:
* Continuous (tighter caster culling)
* Static (all casters are rendered)
2023-11-14 14:17:57 +00:00
Rémi Verschelde
e236747b31
Merge pull request #84475 from timothyqiu/3.x-image-links
...
[3.x] Fix image links to `godot-docs` repository
2023-11-14 11:37:42 +01:00
Rémi Verschelde
6618a2e745
Merge pull request #84415 from m4gr3d/fix_editor_crash_after_backing_from_game_3x
...
[3.x] Fix Android editor crash issue
2023-11-14 11:37:39 +01:00
Rémi Verschelde
2bbfc379df
Merge pull request #84286 from m4gr3d/auto_set_android_sdk_default_3x
...
[3.x] Automatically pick the Android sdk path using environment variables
2023-11-14 11:37:36 +01:00
Rémi Verschelde
010f53a0b6
Merge pull request #84115 from Chubercik/item_list_separator_fix
...
[3.x] Remove the separator from `ItemList`'s thumbnails mode
2023-11-14 11:37:33 +01:00
Rémi Verschelde
42dda76296
Merge pull request #83869 from rarysson/fix-3.x-build
...
[3.x] Add missing include header to FBXCommon.h
2023-11-14 11:37:30 +01:00
Rémi Verschelde
b40cea8fd4
Merge pull request #83664 from turbohz/fix-error-code-255-version-help
...
[3.x] Server: Return exit code 0 when running --version or --help
2023-11-14 11:37:27 +01:00
Rémi Verschelde
814400bdd2
Merge pull request #83136 from bruvzg/occ_3x
...
[3.x] [macOS] Use occlusionState to determine when window is drawable.
2023-11-14 11:37:24 +01:00
Rémi Verschelde
b5081afc55
Merge pull request #83064 from jasonwinterpixel/3.x-gdscript-parser-faster-autoload
...
[3.x] Optimize GDScript parser for checking if an identifier is an autoload
2023-11-14 11:37:20 +01:00
Rémi Verschelde
00b99bdab3
Merge pull request #83031 from lawnjelly/fix_64bit_glgets
...
[3.x] Fix glGet overflows by using 64 bit versions
2023-11-14 11:37:16 +01:00
Rémi Verschelde
575399ee38
Merge pull request #82902 from kleonc/sprite-base-3d-gizmo-plugin-3x
...
[3.x] Make gizmo plugin handle `SpriteBase3D` instead of `Sprite3D`
2023-11-14 11:37:12 +01:00
Rémi Verschelde
1ba1d46740
Merge pull request #81574 from BlueCube3310/3x-dds-grayscale-fix
...
[3.x] Fix grayscale DDS loading
2023-11-14 11:37:07 +01:00
lawnjelly
ed3d029f5d
GLES2 / GLES3 - Use gl_FragColor temporary
...
On some hardware, modifying gl_FragColor multiple times can cause large performance drops. This PR writes to a standard temporary variable instead, and copies across to gl_FragColor once only at the end of the fragment shader.
This could potentially lead to large gains in performance on affected hardware.
2023-11-07 11:53:25 +00:00
Haoyu Qiu
5302868446
Fix image links to godot-docs repository
2023-11-05 16:53:53 +08:00
Fredia Huya-Kouadio
ec8a4c025d
Fix Android editor crash issue
...
Fix issue causing the Android editor to crash when pressing back from a running project
2023-11-03 07:54:04 -07:00
Fredia Huya-Kouadio
e9045a6d03
Add Android project settings for gesture support
...
- Include project setting to enable long press for Android devices
- Include project setting to enable pan and scale gestures on Android devices
2023-11-03 05:25:18 -07:00
Fredia Huya-Kouadio
1ce2b800b5
Automatically pick the Android sdk path using environment variables
2023-11-01 07:36:41 -07:00
Fredia Huya-Kouadio
cf706e2dc3
Update the `launchMode` for the `GodotApp` activity to allow other activities to be part of the same task
...
For details, see https://developer.android.com/guide/topics/manifest/activity-element#lmode
2023-10-31 19:12:34 -07:00
Rémi Verschelde
23c142afe7
Merge pull request #81375 from akien-mga/3.x-cherrypicks
...
Cherry-picks for the 3.x branch (future 3.6) - 15th batch
2023-10-30 16:22:46 +01:00
Fabio Alessandrelli
b4240ea1a7
mbedTLS: Update to version 2.18.5
...
(cherry picked from commit 5333365593
)
2023-10-30 14:52:24 +01:00
Angad Kambli
fe79dc90fc
Check parameter validity in `Object::set_script`
...
Fixes #46120 .
(cherry picked from commit 9c6c2f09e0
)
2023-10-30 14:51:07 +01:00
Rémi Verschelde
54640046a9
Sync controller mappings DB with SDL2 community repo
...
Synced with gabomdq/SDL_GameControllerDB@eb831f75ab
Fixes #83552 .
(cherry picked from commit d3c0a7d598
)
2023-10-30 14:51:07 +01:00
Rémi Verschelde
dc08fa9177
Sync controller mappings DB with SDL2 community repo
...
Synced with gabomdq/SDL_GameControllerDB@fc4b33c872
(cherry picked from commit e40b0b3ed8
)
2023-10-30 14:49:14 +01:00
Rémi Verschelde
0a81659d9b
Web: Fix version check for missing scalbnf LTO workaround
...
The check needs to happen after we set `env["CXX"]`.
Follow-up to #81340 .
(cherry picked from commit 50161808c2
)
2023-10-30 14:49:14 +01:00
DeeJayLSP
a7c5e3134a
libwebp: Sync with upstream 1.3.2
...
(cherry picked from commit 56cfeda7d2
)
2023-10-30 14:49:13 +01:00
Rémi Verschelde
c88a8f96b4
Web: Workaround Emscripten 3.1.42+ LTO regression
...
Fixes #80010 .
(cherry picked from commit b064008c07
)
2023-10-30 14:49:13 +01:00
Rémi Verschelde
cb0ee90fde
CI: Bump version for `actions/checkout@v4`
...
(cherry picked from commit de14f1d295
)
2023-10-30 14:49:13 +01:00
ocean (they/them)
09554a66d8
Build system: add option for MSVC incremental linking.
...
(cherry picked from commit bbafe14970
)
2023-10-30 14:49:13 +01:00
Jakub Marcowski
6637dc28f6
Remove the separator from `ItemList`'s thumbnail mode
2023-10-28 20:20:34 +02:00
Rarysson Guilherme
db29b32cd6
Add missing include header to FBXCommon.h
2023-10-23 21:11:45 -03:00
Jason Knight
4285c44b47
Far faster and more efficient method of checking if an identifer refers an autoload.
2023-10-23 12:13:12 -06:00
TurboHz
7c3d37ec1d
Return exit code 0 when running --version or --help
...
Fixes https://github.com/godotengine/godot/issues/83661
2023-10-20 11:26:38 +02:00
lawnjelly
6ff370030a
Fix glGet overflows by using 64 bit versions
...
Certain glGet operations require 64 bit versions according to the GLES spec.
The previous code was susceptible to overflow bugs, especially running under ANGLE.
2023-10-16 13:47:11 +01:00
bruvzg
d4c2e7ec2e
[macOS, 3.x] Use occlusionState to determine when window is drawable.
2023-10-11 11:49:38 +03:00
kleonc
0cde6800e7
Make gizmo plugin handle SpriteBase3D instead of Sprite3D
2023-10-06 10:43:07 +02:00
Rémi Verschelde
fe7ed984b5
Merge pull request #82512 from Rindbee/fix-axis-being-mixed-up-in-3.x
...
[3.x] BVH - fix axis getting mixed up when split leaf
2023-10-01 22:51:46 +02:00
Rémi Verschelde
3947c11cd3
Merge pull request #82502 from Rindbee/fix-bugs-in-bvh-for-3.x
...
[3.x] BVH - fix not refitting upward from leaf nodes
2023-10-01 22:51:24 +02:00
Rémi Verschelde
5f9cbe514d
Merge pull request #75468 from Ansraer/four_is_overkill
...
[3.x] Add support for 3 dir shadow splits
2023-10-01 22:50:57 +02:00