Commit Graph

4293 Commits (edde380e9cb1545d77e99bba99aaf55f55e7dc86)

Author SHA1 Message Date
Thaddeus Crews 3fcbb1d436
Merge pull request #97770 from tdaven/fix-94151
Fix immediate mesh modifications that don't call set_mesh
2024-10-14 14:09:56 +07:00
kobewi b9d25580ce Fix implementation of property_can_revert() in various classes 2024-10-04 23:02:04 +07:00
bruvzg 794920b1ff
Partially revert 96780, remove warnings from project/editor settings `_get`. 2024-10-04 19:13:03 +07:00
Rémi Verschelde 6c15d59154
Merge pull request #97362 from reduz/make-unique-scene-id-deterministic
Make internal unique scene resource ID deterministic
2024-10-04 17:18:10 +07:00
Trevor Davenport 47f75547ce Fix immediate mesh modifications that don't call set_mesh
Mesh_instance_2d has no way to know when the mesh had been modified
unless you called set_mesh.  This meant that you could modify the
underlying mesh without it knowing which could result in incorrect
result.

Modified mesh_instance_2d to be more similar to mesh_instance_3d which
connects to the changed signal of the mesh and reacts occordingly.
2024-10-03 18:08:49 +07:00
Dario e2c6daf7ef Implement asynchronous transfer queues, thread guards on RenderingDevice. Add ubershaders and rework pipeline caches for Forward+ and Mobile.
- Implements asynchronous transfer queues from PR #87590.
- Adds ubershaders that can run with specialization constants specified as push constants.
- Pipelines with specialization constants can compile in the background.
- Added monitoring for pipeline compilations.
- Materials and shaders can now be created asynchronously on background threads.
- Meshes that are loaded on background threads can also compile pipelines as part of the loading process.
2024-10-02 15:11:58 +07:00
Rémi Verschelde eaac033168
Merge pull request #94240 from MewPurPur/optimize-styleboxflat
Optimize `StyleBoxFlat.draw()`
2024-10-01 17:30:24 +07:00
Rémi Verschelde 41ffc696d2
Merge pull request #93449 from Calinou/basematerial3d-refraction-use-depth-comparison
Fix BaseMaterial3D refracting objects located in front of the material
2024-10-01 17:30:20 +07:00
chocola-mint ed13a840fa Add markers to animation 2024-09-29 17:27:36 +07:00
MewPurPur 71ac6b7476 Optimize StyleBoxFlat.draw() 2024-09-28 12:37:31 +07:00
Rémi Verschelde 8a9a26ef19
Merge pull request #93311 from dsnopek/gdextension-required-virtuals
GDExtension: Mark virtual function as `is_required` in `extension_api.json`
2024-09-27 13:53:16 +07:00
Rémi Verschelde 56d50c30a2
Merge pull request #97414 from AThousandShips/code_highlight_fix
Fix editing of some properties in `CodeHighlighter`
2024-09-26 18:45:38 +07:00
Rémi Verschelde 8eab2b52ed
Merge pull request #96835 from Malcolmnixon/animation-optimize
Expose the optimize method of the Animation class to gdscript.
2024-09-26 18:45:15 +07:00
Hugo Locurcio 8a485ff658
Fix BaseMaterial3D refracting objects located in front of the material
Depth comparison is now used to prevent refraction from occurring
if the pixel being refracted is located in front of the object.

For pixels slightly behind the object, a `smoothstep()` curve
is used to progressively increases refraction intensity
as the distance between the object and the refraction increases.
This avoids sudden discontinuities in the refraction.

Co-authored-by: GeneralLegendary <generallegendary456@gmail.com>
2024-09-26 15:12:31 +07:00
matheusmdx 3e0d3c433b Fix pink GradientTexture2D 2024-09-26 09:50:55 +07:00
Thaddeus Crews 9f9ee0c813
SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 +07:00
Rémi Verschelde 4c5e879cc5
Merge pull request #97380 from TheSofox/handle_modes_default_fix
Ensure `handle_modes` is given default values rather than flagging error if undefined
2024-09-25 12:39:22 +07:00
Rémi Verschelde 65c94ec873
Merge pull request #97290 from fire/fix-animation-compression
Fix animation compression going the wrong way
2024-09-25 12:39:18 +07:00
Paweł b88585abfc Add linux camera support 2024-09-25 12:08:06 +07:00
A Thousand Ships 56f095296c
Fix editing of some properties in `CodeHighlighter` 2024-09-24 17:56:13 +07:00
Sofox 633df0b29c Handle handle_modes being undefined by giving default values rather than flagging error 2024-09-23 20:22:26 +07:00
Rémi Verschelde 2017006879
Merge pull request #97314 from tetrapod00/visual-shader-remap
Visual Shader: Add vector operations to Remap node
2024-09-23 16:14:04 +07:00
Juan abf9d24520 Make internal unique scene resource ID deterministic
Changes the Resource::generate_scene_unique_id() to be deterministic and
seedable.

Fixes #97110
2024-09-23 15:07:00 +07:00
tetrapod00 eb5a9c3b33 Visual Shader: Add vector operations to Remap node 2024-09-22 11:25:36 +07:00
K. S. Ernest (iFire) Lee dd9525be04 Fix animation compression going the wrong way
When compressing animation key frame indices the truncation breaks the animation near the border of pages.

We use banker's rounding (FE_TONEAREST) as implemented by fast_ftoi to get the nearest integer frame.
2024-09-21 19:20:19 +07:00
A Thousand Ships ccca41a086
Remove direct render include in `ExternalTexture`
This include introduces `windows/platform_gl.h` into the include
hierarchy which adds defines which break building on MSVC
2024-09-21 17:44:28 +07:00
David Snopek 1a6f8512bc Add external texture support (GLES3)
Co-authored-by: Fredia Huya-Kouadio <fhuyakou@gmail.com>
Co-authored-by: Mauricio Narvaez <nvz@meta.com>
2024-09-20 10:48:32 +07:00
Thaddeus Crews b37fc1014a
Style: Apply new `clang-format` changes 2024-09-20 08:09:48 +07:00
Raffaele Picca 1df0159b36 Added a more detailed error message when instatiating a scene with missing export properties. 2024-09-16 16:08:55 +07:00
Rémi Verschelde f2ce94fdde
Merge pull request #96885 from LuizZak/grow_mask_sqrt_fix
Avoid expensive sqrt operation in hot loop of `BitMap.grow_mask`
2024-09-13 11:22:01 +07:00
Luiz Fernando Silva 293cc2126e Avoid expensive sqrt operation in hot loop of BitMap.grow_mask 2024-09-12 11:04:57 +07:00
Rémi Verschelde b214aa8faf
Merge pull request #96880 from zeux/fix-vcache-nontri
Fix a crash in `ImporterMesh::create_shadow_mesh` for non-triangle surfaces
2024-09-12 09:26:01 +07:00
Rémi Verschelde b998cb1335
Merge pull request #96768 from DeeJayLSP/wav-end
WAV: Fix one frame overflow at the end
2024-09-12 09:25:31 +07:00
Rémi Verschelde b9b07d619f
Merge pull request #94783 from TokageItLab/validate-gltf-anim-name
Add validation to glTF importer for Blendshape and Animation
2024-09-12 09:25:10 +07:00
DeeJayLSP 147accdf74 WAV: Fix one frame overflow at the end 2024-09-11 21:57:14 +07:00
David Snopek c2af6bcb59 GDExtension: Mark virtual function as `is_required` in `extension_api.json`
Co-authored-by: Jovan Gerodetti <jovan.gerodetti@titannano.de>
2024-09-11 16:48:14 +07:00
Arseny Kapoulkine 7d7b43bca2 Fix a crash in ImporterMesh::create_shadow_mesh for non-triangle surfaces
optimize_vertex_cache_func assumes the input is a triangle mesh; when an
imported mesh contains points/lines/triangle strips, this code should be
disabled.
2024-09-11 13:18:58 +07:00
Malcolm Nixon 3e93970ef5 Expose the optimize method of the Animation class to gdscript. 2024-09-11 01:18:30 +07:00
bruvzg 3009073b39 [Resource Loader] Do not check property type for non registered properties. 2024-09-10 11:27:16 +07:00
Rémi Verschelde 493f3edce7
Merge pull request #96572 from adamscott/fix-samples-leak
Fix leak when using audio samples instead of streams
2024-09-09 17:51:42 +07:00
Rémi Verschelde 7a4c03418a
Merge pull request #96144 from SaracenOne/reimport_owner_instance
Make reimported models reimport their owner.
2024-09-08 23:21:32 +07:00
Rémi Verschelde 0e307f8647
Merge pull request #96017 from DeeJayLSP/wav-vec
AudioStream(Playback)WAV: Use LocalVectors instead of pointers
2024-09-08 23:21:23 +07:00
DeeJayLSP d5ad6dd699 AudioStream(Playback)WAV: Use LocalVectors instead of pointers 2024-09-08 02:32:59 +07:00
Saracen 86ce15fb7a Make reimported models reimport their owner.
Changes the behaviour of the scene hot-reload system
so that if the scene which needs to be reimported is
owned by another instance, reload that instance instead.
2024-09-08 03:12:47 +07:00
Rémi Verschelde 0b4ae20156
Merge pull request #78656 from Repiteo/typed-dictionary
Implement typed dictionaries
2024-09-06 22:38:13 +07:00
Rémi Verschelde c2d81b0b98
Merge pull request #96265 from bruvzg/rtl_dc4
Account for dropcap when calculating paragraph size, fix duplicate last char when using dropcap with autowrap off.
2024-09-06 11:11:09 +07:00
Rémi Verschelde c01667abc0
Merge pull request #96285 from kleonc/style_box_flat_fix_rects_skewing_center
Fix `StyleBoxFlat` rectangles skewing independently
2024-09-06 10:09:28 +07:00
Adam Scott d3ddce6b88
Fix leak when using audio samples instead of streams 2024-09-04 12:56:03 +07:00
Thaddeus Crews 9853a69144
Implement typed dictionaries 2024-09-04 10:27:26 +07:00
Rémi Verschelde 13a90e938f
Merge pull request #70096 from rune-scape/stringname-dict
StringName Dictionary keys
2024-09-03 17:38:06 +07:00