Yufeng Ying
b5141b8171
Optimize TileSetAtlasSource::_get_property_list
...
Co-authored-by: Haoyu Qiu <timothyqiu@users.noreply.github.com>
2024-10-19 15:12:53 +08:00
Chaosus
43a99fba3d
Add alpha channel display to vec4 previews of visual shader nodes
2024-10-18 20:00:10 +03:00
Haoyu Qiu
5adb489a04
Fix error when undo tile deletion in TileSetAtlasSourceEditor
2024-10-18 20:06:31 +08:00
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 -05:00
bruvzg
309712551c
[TextParagraph/Button] Add support for line spacing.
2024-10-10 12:49:24 +03:00
tetrapod00
12d2c05936
Add "Inspect Native Shader Code" to shader resource and shader editor
2024-10-08 11:02:45 -07:00
kobewi
b9d25580ce
Fix implementation of property_can_revert() in various classes
2024-10-04 23:02:04 +02:00
bruvzg
794920b1ff
Partially revert 96780, remove warnings from project/editor settings `_get`.
2024-10-04 19:13:03 +03: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 +02: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 -06: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 -03:00
Rémi Verschelde
eaac033168
Merge pull request #94240 from MewPurPur/optimize-styleboxflat
...
Optimize `StyleBoxFlat.draw()`
2024-10-01 17:30:24 +02: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 +02:00
chocola-mint
ed13a840fa
Add markers to animation
2024-09-29 17:27:36 +09:00
MewPurPur
71ac6b7476
Optimize StyleBoxFlat.draw()
2024-09-28 12:37:31 +03: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 +02: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 +02: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 +02: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 +02:00
matheusmdx
3e0d3c433b
Fix pink GradientTexture2D
2024-09-26 09:50:55 -03:00
Thaddeus Crews
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files
2024-09-25 09:34:35 -05: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 +02: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 +02:00
Paweł
b88585abfc
Add linux camera support
2024-09-25 12:08:06 +02:00
A Thousand Ships
56f095296c
Fix editing of some properties in `CodeHighlighter`
2024-09-24 17:56:13 +02:00
Sofox
633df0b29c
Handle handle_modes being undefined by giving default values rather than flagging error
2024-09-23 20:22:26 +01:00
aaronp64
e5fada9cd1
Keep existing VectorCompose input values when setting vector type
...
VisualShaderNodeVectorCompose::set_op_type would zero out input port default values for z and w when using vector 3D/4D, updated to keep values for all ports.
Zeroing out z and w would cause values for 4D vectors to be lost when loading the visual shader - 3D vectors were not affected by this, since 3D is the default op type, which caused this step to be skipped during loading. However, both 3D and 4D were affected when changing the op type from the drop down in editor. For example, changing from 3D (1, 2, 3) to 4D would result in (1, 2, 0, 0), and changing from 4D (1, 2, 3, 4) to 3D would result in (1, 2, 0), losing previously set values.
2024-09-23 10:37:32 -04: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 +02: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 +02: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 +02: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 -05:00
Thaddeus Crews
b37fc1014a
Style: Apply new `clang-format` changes
2024-09-20 08:09:48 -05:00
Raffaele Picca
1df0159b36
Added a more detailed error message when instatiating a scene with missing export properties.
2024-09-16 16:08:55 +02: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 +02:00
Luiz Fernando Silva
293cc2126e
Avoid expensive sqrt operation in hot loop of BitMap.grow_mask
2024-09-12 11:04:57 -03: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 +02: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 +02: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 +02:00
DeeJayLSP
147accdf74
WAV: Fix one frame overflow at the end
2024-09-11 21:57:14 -03: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 -05: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 -04:00
bruvzg
3009073b39
[Resource Loader] Do not check property type for non registered properties.
2024-09-10 11:27:16 +03: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 +02: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 +02: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 +02:00
DeeJayLSP
d5ad6dd699
AudioStream(Playback)WAV: Use LocalVectors instead of pointers
2024-09-08 02:32:59 -03: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 +01:00
Rémi Verschelde
0b4ae20156
Merge pull request #78656 from Repiteo/typed-dictionary
...
Implement typed dictionaries
2024-09-06 22:38:13 +02: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 +02: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 +02:00
Adam Scott
d3ddce6b88
Fix leak when using audio samples instead of streams
2024-09-04 12:56:03 -04:00
Thaddeus Crews
9853a69144
Implement typed dictionaries
2024-09-04 10:27:26 -05:00
Rémi Verschelde
13a90e938f
Merge pull request #70096 from rune-scape/stringname-dict
...
StringName Dictionary keys
2024-09-03 17:38:06 +02:00
Rémi Verschelde
d15de6f264
Merge pull request #96292 from AThousandShips/null_check_ref_fix
...
Cleanup of raw `nullptr` checks with `Ref`
2024-09-03 16:13:55 +02:00
Gilles Roudière
d75c5ec7ba
Implement multiple occlusion polygons within each TileSet occlusion layer
2024-09-03 15:38:51 +02:00
Rémi Verschelde
9dbf9aa4dc
Merge pull request #96511 from lawnjelly/fix_namespace_conflict
...
Fix SCU global namespace conflict in `resource_format_text.cpp`
2024-09-03 11:44:09 +02:00
Rémi Verschelde
a2b64ed544
Merge pull request #95961 from RadiantUwU/fix-mesh-recursion
...
Fix shadow mesh recursion.
2024-09-03 11:43:16 +02:00
Rémi Verschelde
5633080147
Merge pull request #93624 from EAinsley/complete#3942
...
Add duplicate animation for SpriteFrames
2024-09-03 11:43:00 +02:00
lawnjelly
543ab3da11
Fix SCU global namespace conflict in `resource_format_text.cpp`
...
`FORMAT_VERSION` is used in multiple places in the codebase, and #defining it was causing conflicts.
2024-09-03 07:30:56 +01:00
Rémi Verschelde
160e3b3cf4
Merge pull request #91973 from Arnklit/particle-cylinder-cone-emission-shape
...
Add cone angle control to particle emission ring shape
2024-09-02 18:07:55 +02:00
Kasper Arnklit Frandsen
40b9516724
Add cone angle control to particle emission ring shape
2024-09-02 14:35:51 +02:00
Rémi Verschelde
25fc31638b
Merge pull request #92838 from Nazarwadim/small_animation_optimization
...
Optimize AnimationMixer blend process
2024-09-02 12:12:46 +02:00
Ainsley Su
57bc1d7574
Add duplicate animation
...
Co-authored-by: Nonunknown <nonunknown777@gmail.com>
2024-09-01 17:00:47 +02:00
Radiant
70860aafd8
Fix shadow mesh recursion.
2024-08-31 22:31:43 +03:00
A Thousand Ships
194bdde947
Cleanup of raw `nullptr` checks with `Ref`
...
Using `is_valid/null` over checks with `nullptr` or `ERR_FAIL_NULL` etc.
2024-08-31 15:01:09 +02:00
Rémi Verschelde
77bc419071
Merge pull request #96174 from DeeJayLSP/wav-docs
...
WAV stream/importer: Improve compression/loop names and descriptions
2024-08-30 23:37:50 +02:00
DeeJayLSP
5a50b3a6c5
WAV stream/importer: Improve compression/loop names and descriptions
2024-08-30 16:31:57 -03:00
Nazarii
660e28f5cb
Use static LocalVector for processed_hashes
2024-08-30 19:41:38 +03:00
nazarii
3580ced21e
Optimize animations
2024-08-30 19:18:56 +03:00
Rémi Verschelde
909629d9f9
Merge pull request #96166 from AThousandShips/more_lock_raii
...
Use `MutexLock` in more places
2024-08-30 09:59:19 +02:00
Rémi Verschelde
653a888060
Merge pull request #95463 from DeeJayLSP/qoa-mem
...
QOA: Remove unnecessary memory allocation
2024-08-30 09:59:10 +02:00
rune-scape
154049ce17
StringName Dictionary keys
...
also added 'is_string()' method to Variant
and refactored many String type comparisons to use it instead
2024-08-29 13:39:27 -07:00
kleonc
86c773d208
Fix StyleBoxFlat rectangles skewing independently
2024-08-29 15:34:30 +02:00
A Thousand Ships
e33fdb4296
Use `MutexLock` in more places
2024-08-29 14:12:59 +02:00
Rémi Verschelde
96cbcc30e2
Merge pull request #90945 from Scony/extract-navigation-defaults
...
Extract navigation-related defaults to separate header
2024-08-29 10:36:14 +02:00
bruvzg
fc2fae2ab1
Account for dropcap when calculating paragraph size, fix duplicate last char when using dropcap with autowrap off.
2024-08-29 09:37:23 +03:00
BlueCube3310
6412cdf27d
Fix saving subresources of nodes
2024-08-28 12:37:10 +02:00
Rémi Verschelde
78935cad95
Merge pull request #94954 from raulsntos/mark-internal-properties
...
Mark underscored properties as internal
2024-08-28 00:12:42 +02:00
Rémi Verschelde
9f70823eec
Merge pull request #94012 from KoBeWi/reload_everything_to_update_one_line
...
Allow live reloading of built-in scripts
2024-08-28 00:11:53 +02:00
Pawel Lampe
c3f1bfd5cb
Extract navigation-related defaults to separate header
2024-08-27 20:12:10 +02:00
Rémi Verschelde
9dfc41568a
Merge pull request #95984 from timothyqiu/what-identifier
...
Add `String.is_valid_unicode_identifier()`
2024-08-27 16:55:06 +02:00
Rémi Verschelde
21bcff00e9
Merge pull request #95126 from Chaosus/shader_cubemap_fix
...
Allow setting a cubemap as default parameter to shader
2024-08-27 16:54:50 +02:00
Chaosus
db251a3f99
Allow setting a cubemap as default parameter to shader
2024-08-27 09:43:05 +03:00
Chaosus
f538376c3b
Add `CLIP_SPACE_FAR` built-in to spatial shader
2024-08-27 08:48:46 +03:00
Haoyu Qiu
8bf4ecc026
Add `String.is_valid_unicode_identifier()`
...
- Adds `is_valid_unicode_identifier()`
- Adds `is_valid_ascii_identifier()`
- Deprecates `is_valid_identifier()`
- Renames `validate_identifier()` to `validate_ascii_identifier()`
2024-08-27 11:34:08 +08:00
Rémi Verschelde
0125b0eb03
Merge pull request #94215 from Chaosus/vs_preview_and_param_list
...
Add a material preview to visual shader editor
2024-08-26 23:28:46 +02:00
Rémi Verschelde
347700cd95
Merge pull request #83443 from Chaosus/vs_fix_input_sorting
...
Fix visual shader inputs to follow the alphabet order
2024-08-26 23:28:04 +02:00
Rémi Verschelde
350bde0db6
Merge pull request #95954 from rakkarage/shader-material-reset
...
Enable revert button for `ShaderMaterial::next_pass` and `ShaderMaterial::render_priority`.
2024-08-26 22:45:37 +02:00
Rémi Verschelde
8dad1ba482
Merge pull request #92933 from TokageItLab/match-concatenating
...
Match the coding style for concatenating String
2024-08-26 22:44:59 +02:00
DeeJayLSP
703c31fb40
WAV: Add missing break on `get_length()`
2024-08-25 14:18:26 -03:00
DeeJayLSP
b4d44a4253
QOA: Remove unnecessary memory allocation
2024-08-24 21:39:55 -03:00
Rakka Rage
ba23b22153
Enable revert button for `ShaderMaterial::next_pass` and `ShaderMaterial::render_priority`.
2024-08-22 16:28:59 -04:00
Rémi Verschelde
091212b4f1
Merge pull request #93602 from aaronp64/inspector_latency
...
Improve Editor Inspector/Theme item lookup performance
2024-08-22 00:10:26 +02:00
Yuri Rubinsky
eef236db63
Fix visual shader inputs to follow the alphabet order
2024-08-20 20:51:47 +03:00
aaronp64
7593e55527
Improve Editor Inspector/Theme item lookup performance
...
Changes to reduce the latency between changing node selection in the editor and seeing the new node reflected in the Inspector tab
- Use Vector instead of List for ThemeOwner::get_theme_type_dependencies and related functions
- Use Vector instead of List for ThemeContext::themes, set_themes(), and get_themes()
- Add ClassDB:get_inheritance_chain_nocheck to get all parent/ancestor classes at once, to avoid repeated ClassDB locking overhead
- Update BIND_THEME_ITEM macros and ThemeDB::update_class_instance_items to use provided StringNames for call to ThemeItemSetter, instead of creating a new StringName in each call
These changes reduce the time taken by EditorInspector::update_tree by around 30-35%
2024-08-20 13:39:40 -04:00
Rémi Verschelde
7999b4bb8a
Merge pull request #94324 from SomeRanDev/shader_hint_enum
...
GDShader: Add `hint_enum` for `uniform int`
2024-08-20 10:01:57 +02:00
Rémi Verschelde
6a9ecdcf0c
Merge pull request #91818 from rburing/fti_multimesh
...
Physics interpolation: `MultiMesh`
2024-08-20 10:01:46 +02:00
Rémi Verschelde
da57bab169
Merge pull request #92560 from smix8/navmesh2d_bake_partition
...
Add triangulation partition option to 2D navigation mesh baking
2024-08-19 16:04:49 +02:00
Rémi Verschelde
8b98d9aa4d
Merge pull request #95137 from smix8/source_geo_bounds
...
Add `get_bounds()` function to NavigationMeshSourceGeometryData
2024-08-19 14:34:13 +02:00
Rémi Verschelde
43c46b9b1b
Merge pull request #95013 from smix8/navmesh_geo_parse
...
Change NavigationMesh to also parse collision shapes by default
2024-08-19 12:08:55 +02:00
smix8
2e1f6b50fb
Add bounds function to NavigationMeshSourceGeometryData
...
Adds get_bounds() function to NavigationMeshSourceGeometryData2D/3D to get a bounding box that covers all the geometry.
2024-08-19 00:12:37 +02:00
Ricardo Buring
1728f80e7c
Fixed Timestep Interpolation: MultiMesh
...
Adds fixed timestep interpolation to multimeshes.
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-08-18 17:14:59 +02:00
Yuri Rubinsky
f202a3d24e
Add a material preview to visual shader editor
2024-08-17 08:27:54 +03:00
Patrick Sean Klein
a1fe6ffa19
NavigationPolygon: Implement get/set_polygon fast paths.
2024-08-17 00:31:58 +02:00
Arseny Kapoulkine
0fde03c0e0
Optimize base and shadow meshes for cache
...
Previously, vertex cache optimization was ran for the LOD meshes, but
was never ran for the base mesh or for the shadow meshes, including
shadow LOD chain (shadow LOD chain would sometimes get implicitly
optimized for vertex cache as a byproduct of base LOD optimization, but
not always). This could significantly affect the rendering performance
of geometry heavy scenes, especially for depth or shadow passes where
the fragment load is light.
2024-08-16 07:36:12 -07:00
Rémi Verschelde
a778f7803c
Merge pull request #95529 from bruvzg/bmfont_match_h
...
[BMFont] Fix importing fonts with `Match char height` enabled.
2024-08-16 14:35:32 +02:00
Rémi Verschelde
1346aaf4e7
Merge pull request #95465 from jsjtxietian/remove-category-warning
...
Remove `missing a category` warning in visual shader node
2024-08-16 14:34:56 +02:00
Rémi Verschelde
60b0b5cd42
Merge pull request #95337 from kleonc/tile_set_editor_fix_transposed_polygons_editing
...
Fix polygon drawing for transposed tiles in `TileSet` editor
2024-08-16 14:33:37 +02:00
Rémi Verschelde
e43a328f8e
Merge pull request #95464 from tetrapod00/visual-shader-inspector-spatial-node3d-rename
...
Fix wrong name for Spatial shader mode in VisualShader resource inspector
2024-08-16 10:36:22 +02:00
Rémi Verschelde
5960555f9b
Merge pull request #94726 from BastiaanOlij/primitive_texel_size_update
...
Make primitive meshes react to texel size change
2024-08-16 10:34:35 +02:00
Rémi Verschelde
e58a7530aa
Merge pull request #93727 from zeux/raycast-opt
...
Disable normal raycaster for LOD generation by default
2024-08-16 10:34:03 +02:00
bruvzg
e7f215c2c4
[BMFont] Fix importing fonts with `Match char height` enabled.
2024-08-14 23:52:19 +03:00
jsjtxietian
c7249f41e9
Remove `missing a category` warning in visual shader node
2024-08-13 12:20:59 +08:00
tetrapod00
b9876b626d
Change "Node3D" to "Spatial" in VisualShader resource
2024-08-12 21:04:13 -07:00
Rémi Verschelde
ece2e6d23b
Merge pull request #95377 from raulsntos/gdextension/expose-property-accessors/Animation
...
Make `Animation::capture_included` read-only
2024-08-12 14:10:37 +02:00
Raul Santos
415331f474
Make `Animation::capture_included` read-only
...
The `PROPERTY_USAGE_READ_ONLY` flag only makes the property read-only in the inspector, but the property also has the `PROPERTY_USAGE_NO_EDITOR` flag which means it won't show up in the inspector. So it does nothing, while still making it editable from scripting.
To make it read-only for scripting too, this PR removes the setter from the `PropertyInfo`. And since the `set_capture_included` method is now unused, it was also removed.
2024-08-10 18:53:45 +02:00
kleonc
6895f6f8cc
Fix TileAtlasView bounds checks for transposed tiles
2024-08-09 19:26:02 +02:00
Rémi Verschelde
2edf9b95b3
AudioStreamPolyphonic: Implement stopping with sample playback
...
Fixes #94724 .
2024-08-09 10:57:50 +02:00
smix8
110b2dc61a
Add triangulation partition option to 2D navigation mesh baking
...
Adds triangulation partition option to 2D navigation mesh baking as an alternative to the existing convex partition option.
2024-08-05 00:08:46 +02:00
bruvzg
5c8a8c57be
[Font] Add check for cyclic base font dependencies.
2024-08-03 00:00:11 +03:00
smix8
c9b152bd0c
Change NavigationMesh to also parse collision shapes by default
...
Changes NavigationMesh parse geometry types to include collision shapes as well by default.
2024-08-01 14:41:49 +02:00
Raul Santos
7a20ba9b63
Mark underscored properties as internal
...
These properties look like they were intended to be internal but they were missing the `PROPERTY_USAGE_INTERNAL` flag.
- `PackedScene::_bundled`
- `PortableCompressedTexture2D::_data`
- `ImporterMesh::_data`
2024-07-30 18:50:00 +02:00
Silc 'Tokage' Renew
0235086c14
Add validation to glTF importer for Blendshape and Animation
2024-07-26 18:05:34 +09:00
Bastiaan Olij
b9790cef47
Make primitive meshes react to texel size change
2024-07-26 13:54:11 +10:00
Rémi Verschelde
543e4388d5
Merge pull request #94682 from zeux/lod-uv-mirror
...
Fix LOD generation for meshes with tangents & mirrored UVs
2024-07-24 09:59:45 +02:00
Arseny Kapoulkine
18d6ae1161
Fix LOD generation for meshes with tangents & mirrored UVs
...
When UVs are mirrored in a mesh, collapsing vertices across the
mirroring seam can significantly reduce quality in a way that is not
apparent to the simplifier. Even if simplifier was given access to UV
data, the coordinates would need to be weighted very highly to prevent
these collapses, which would penalize overall quality of reasonable
models.
Normally, well behaved models with mirrored UVs have tangent data that
is correctly mirrored, which results in duplicate vertices along the
seam. The simplifier automatically recognizes that seam and preserves
its structure; typically models have few edge loops where UV winding is
flipped so this does not affect simplification quality much.
However, pre-processing for LOD data welded vertices when UVs and
normals were close, which welds these seams and breaks simplification,
creating triangles with distorted UVs.
We now take tangent frame sign into account when the input model has
tangent data, and only weld vertices when the sign is the same.
2024-07-23 16:35:46 -07:00
Silc Lizard (Tokage) Renew
88e590c9d3
Add approx comparing methods to Animation, use them on time comparison
2024-07-24 01:18:06 +09:00
Rémi Verschelde
962c2512c3
Merge pull request #94611 from Chaosus/vs_fix_texture_warning
...
Fix warning printing for `VisualShaderNodeTextureParameter`
2024-07-22 14:13:20 +02:00
David Trallero
67ece3dc63
Fix polyphonic audio streams with id > 1 cannot be stopped or changed (MSVC mis-optimization)
2024-07-22 14:08:02 +02:00
Yuri Rubinsky
7c9afbc139
Fix warning printing for `VisualShaderNodeTextureParameter`
2024-07-22 11:22:27 +03:00
Rémi Verschelde
caa1b6d991
Merge pull request #94498 from Chaosus/vs_fix_connection_bug
...
Fix internal connection count decreased if visual shader node removed
2024-07-18 15:38:27 +02:00
Rémi Verschelde
72e434bad4
Merge pull request #94497 from Chaosus/vs_rotation_by_axis
...
Few fixes for `VisualShaderNodeRotationByAxis`
2024-07-18 15:38:24 +02:00
kobewi
10da06a32c
Fix empty region in AtlasTexture
2024-07-18 15:31:59 +02:00
Yuri Rubinsky
14c36b733c
Fix internal connection count decreased if visual shader node removed
2024-07-18 11:40:02 +03:00
Yuri Rubinsky
cf70cb57ee
Few fixes for `VisualShaderNodeRotationByAxis`
2024-07-18 11:10:36 +03:00
Rémi Verschelde
c77c41df88
Merge pull request #94362 from smix8/navpoly_unref_fix
...
Fix NavigationPolygon not updating consistently on rebakes
2024-07-17 11:44:09 +02:00
smix8
9dd05964d5
Fix NavigationPolygon not updating consistently on rebakes
...
Fixes that NavigationPolygon did not update in all cases because the internal NavigationMesh was not always unref and freed which blocked creating a new mesh later if nothing else freed it.
2024-07-14 22:01:11 +02:00
Robert Borghese
1052985b00
Add `hint_enum` for uniform int in gdshader
2024-07-13 14:30:08 -04:00
Yuri Rubinsky
92aa01f937
Add few new outputs to the visual shaders
2024-07-12 17:12:22 +03:00
kobewi
5636518358
Allow live reloading of built-in scripts
2024-07-06 23:43:37 +02:00
bruvzg
847aadee02
[Editor] Update font preview directly instead of invalidating property list.
2024-07-05 12:48:39 +03:00
Rémi Verschelde
4d984b6369
Merge pull request #93930 from Arnklit/short-animation-length-bezier-handle-fix
...
Clamp bezier handle length to half the length of animation
2024-07-04 17:12:22 +02:00
Rémi Verschelde
af55caff36
Merge pull request #93723 from KoBeWi/bandaid.tscn
...
Speed up scene group scanning for text scenes
2024-07-04 17:12:06 +02:00
Kasper Frandsen
7c6f32ddbf
Clamp bezier handle length to half the length of animation
2024-07-04 13:41:12 +01:00
Arseny Kapoulkine
a13a64eacd
Disable normal raycaster for LOD generation by default
...
Normal raycaster makes LOD generation process >2x slower and often
generates normals that look significantly worse compared to what the
simplifier comes up with by default. This was likely different before
last meshoptimizer upgrade, as the attribute metric was not functioning
properly, but now it looks like it's doing more harm than good.
This change makes it disabled by default but keeps an easy option to
re-enable it per mesh using LOD parameters for now until we get more
confidence and can remove the code outright.
Because the long term plan would be to disable this feature entirely,
the scripting API isn't changed, and it's just off-by-default there with
no way to re-enable.
2024-07-02 10:18:15 -07:00
kleonc
88b29539f7
Fix AtlasTexture::draw_rect flipping for non-zero margin
2024-07-01 21:22:25 +02:00
kobewi
b83c64faac
Speed up scene group scanning for text scenes
2024-06-29 21:30:38 +02:00