Commit Graph

329 Commits (master)

Author SHA1 Message Date
Rémi Verschelde 1d9b073ef0
Merge pull request #112058 from Chaosus/vs_fix_param_ref
Fix ParameterRef connection through reroute in visual shaders
2025-11-27 21:47:59 +07:00
Chaosus 808faa0ab0 Add `instance_index` option to parameters in visual shaders 2025-11-08 14:35:24 +07:00
Chaosus 0a0a72b74a Fix ParameterRef connection through reroute in visual shaders 2025-10-26 19:54:16 +07:00
Thaddeus Crews 3e1af9a12a
Merge pull request #109021 from KoBeWi/visual_code
Don't save code property of VisualShader
2025-10-10 10:26:11 +07:00
A Thousand Ships bd65cfa876
Revert "Replace many uses of `is_class` with `derives_from`."
This reverts commit 78b743cf4a.
2025-09-25 13:48:53 +07:00
Lukas Tenbrink 8ef4a43ada Replace many uses of `is_class` with `derives_from`. 2025-09-23 19:59:00 +07:00
Thaddeus Crews ba0da90ba6
Merge pull request #108254 from KoBeWi/ENABLE_HINT_GROUP_PROPERTY_HINT
Add more `PROPERTY_HINT_GROUP_ENABLE` uses
2025-09-22 08:50:12 +07:00
kobewi 98a4b46b6a Add more PROPERTY_HINT_GROUP_ENABLE uses 2025-09-20 21:11:12 +07:00
kobewi d61a337a70 Improve usage of String.split() vs get_slice() 2025-09-19 16:31:55 +07:00
Colin O'Rourke c4559c02de VisualShader Conversion fails with Embeds
Potentially resolves https://github.com/godotengine/godot/issues/101375

VisualShader now has a has_node_embeds function that runs through it's child nodes to find embedded resources via object properties. Conversion plugin uses this function to catch the error.
2025-09-18 14:35:30 +07:00
kobewi 31b5375a1c Don't save code property of VisualShader 2025-07-27 14:25:02 +07:00
Qbieshay 657dc82fe4 Sort bent normal output at the bottom to prevent visual shader breakage 2025-07-15 11:36:47 +07:00
Thaddeus Crews 2f39f4746d
Merge pull request #107729 from Chaosus/vs_fix_missing_transform_preview
Add missing input transform to visual shader preview
2025-06-27 09:39:55 +07:00
kobewi 28a11ab551 Restore graph_offset property 2025-06-25 18:25:57 +07:00
Chaosus 5a43220818 Add missing input transform to visual shader preview 2025-06-19 20:46:55 +07:00
Hendrik Brucker 666d7c030b [VisualShader] Fix and improve editor state persistence 2025-06-14 13:10:17 +07:00
LuoZhihao 8ba4656ea3 Compile out editor-only logic within `validate_property` in games 2025-06-12 12:54:19 +07:00
Apples d674c9e289 Add stencil support for spatial materials 2025-06-11 09:59:10 +07:00
Apples 7574a5dbb3 Add depth function for spatial materials 2025-06-06 09:21:19 +07:00
Capry 9828c365c3 Add support for bent normals for indirect lighting and specular occlusion 2025-05-12 12:52:04 +07:00
Yufeng Ying 2db0a44519 Remove vmap.h 2025-05-09 19:05:28 +07:00
Yufeng Ying 31bfc41202 Replace VMap with HashMap in VisualShader. 2025-05-09 19:05:28 +07:00
dsmtE 4e68f277c6 add REGION_RECT
fix formatting

fix shader compile (region_rect after draw_data)

fix formatting

fix formatting

Review fix (move region_rect in main + remove useless visual shader options)

fix formatting

fix alphabetic order (+ remove useless action for spatial shaders)

typo + remove TYPE_LIGHT option for  region_rect
2025-04-30 11:07:22 +07:00
Max Piepenbrink b28800e580 Include alpha in visual shader light function inputs
Lack of access to the alpha accumulator makes some effects that are sensitive to lighting impossible with the visual shader graph. This is an easy fix thankfully as it simply just wasn't exposed.
2025-03-11 20:57:03 +07:00
A Thousand Ships 5113022dfe
Clean up some uses of `String::substr`
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +07:00
aaronp64 c4db6687f9 Generate global code for VisualShader nodes that connect to VaryingSetters
Updated visual shader code to call generate_global_per_node() for nodes connected to VaryingSetter nodes, even if they don't connect directly to Output.
2025-01-16 15:14:12 +07:00
A Thousand Ships a1846b27ea
Improve use of `Ref.is_null/valid`
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 +07:00
Yufeng Ying 73d85f46c9 Remove unused headers in scene.
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:09 +07:00
Lukas Tenbrink b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +07:00
rune-scape d58b2e879f Get rid of easily removable uses of const_cast 2024-12-01 17:50:13 +07:00
Chaosus a64b3fd3f8 Allow `SCREEN_UV` to be used in light function of spatial shader 2024-11-19 11:39:49 +07:00
Thaddeus Crews 90ce26a27b
Merge pull request #94889 from rune-scape/no-const-list-erase
Remove const_cast in `List::erase`
2024-11-10 12:12:34 +07:00
rune-scape a47daa0a44 Avoid const_cast in List::erase by requiring mutable elements 2024-11-08 00:10:08 +07:00
Thaddeus Crews 6cef0a17fb
Merge pull request #98571 from timothyqiu/pname-no-editor
Don't mark `PROPERTY_USAGE_NO_EDITOR` properties for translation
2024-11-05 18:36:10 +07:00
Haoyu Qiu d47425b35f Don't mark `PROPERTY_USAGE_NO_EDITOR` properties for translation
Using `PNAME()` on these properties are redundant as they won't be displayed
in the editor and some of them will be automatically ignored by the
extraction script.
2024-10-26 22:09:21 +07:00
Chaosus 43a99fba3d Add alpha channel display to vec4 previews of visual shader nodes 2024-10-18 20:00:10 +07: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 +07: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 +07:00
Chaosus db251a3f99 Allow setting a cubemap as default parameter to shader 2024-08-27 09:43:05 +07:00
Chaosus f538376c3b Add `CLIP_SPACE_FAR` built-in to spatial shader 2024-08-27 08:48:46 +07: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 +07: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 +07:00
Yuri Rubinsky eef236db63 Fix visual shader inputs to follow the alphabet order 2024-08-20 20:51:47 +07:00
Yuri Rubinsky f202a3d24e Add a material preview to visual shader editor 2024-08-17 08:27:54 +07: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 +07:00
jsjtxietian c7249f41e9 Remove `missing a category` warning in visual shader node 2024-08-13 12:20:59 +07:00
tetrapod00 b9876b626d Change "Node3D" to "Spatial" in VisualShader resource 2024-08-12 21:04:13 +07:00
Yuri Rubinsky 14c36b733c Fix internal connection count decreased if visual shader node removed 2024-07-18 11:40:02 +07:00
Yuri Rubinsky 92aa01f937 Add few new outputs to the visual shaders 2024-07-12 17:12:22 +07:00
Yuri Rubinsky 537316098f Fix bugs in visual shader varyings 2024-06-16 16:58:46 +07:00