summaryrefslogtreecommitdiffstats
path: root/scene/resources/visual_shader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@0f5f3bc9546b46b2029fc8896dc859697f1eab97Spartan3222024-11-111-1/+1
|\
| * Merge pull request #94889 from rune-scape/no-const-list-eraseThaddeus Crews2024-11-101-1/+1
| |\ | | | | | | | | | Remove const_cast in `List::erase`
| | * Avoid const_cast in List::erase by requiring mutable elementsrune-scape2024-11-081-1/+1
| | |
* | | Merge commit godotengine/godot@87318a2fb7fffeb72adca934e31915be077c3d1fSpartan3222024-11-061-2/+2
|\| |
| * | Merge pull request #98571 from timothyqiu/pname-no-editorThaddeus Crews2024-11-051-2/+2
| |\ \ | | |/ | |/| | | | Don't mark `PROPERTY_USAGE_NO_EDITOR` properties for translation
| | * Don't mark `PROPERTY_USAGE_NO_EDITOR` properties for translationHaoyu Qiu2024-10-261-2/+2
| | | | | | | | | | | | | | | | | | 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.
* | | Merge commit godotengine/godot@c6c464cf9ae56e8b68620af65125dd980d0e8122Spartan3222024-11-021-1/+1
|\| |
| * | Add alpha channel display to vec4 previews of visual shader nodesChaosus2024-10-181-1/+1
| |/
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Merge pull request #95984 from timothyqiu/what-identifierRémi Verschelde2024-08-271-2/+2
|\ | | | | | | Add `String.is_valid_unicode_identifier()`
| * Add `String.is_valid_unicode_identifier()`Haoyu Qiu2024-08-271-2/+2
| | | | | | | | | | | | | | - Adds `is_valid_unicode_identifier()` - Adds `is_valid_ascii_identifier()` - Deprecates `is_valid_identifier()` - Renames `validate_identifier()` to `validate_ascii_identifier()`
* | Merge pull request #95126 from Chaosus/shader_cubemap_fixRémi Verschelde2024-08-271-1/+1
|\ \ | | | | | | | | | Allow setting a cubemap as default parameter to shader
| * | Allow setting a cubemap as default parameter to shaderChaosus2024-08-271-1/+1
| |/
* / Add `CLIP_SPACE_FAR` built-in to spatial shaderChaosus2024-08-271-0/+3
|/
* Merge pull request #94215 from Chaosus/vs_preview_and_param_listRémi Verschelde2024-08-261-2/+74
|\ | | | | | | Add a material preview to visual shader editor
| * Add a material preview to visual shader editorYuri Rubinsky2024-08-171-2/+74
| |
* | Fix visual shader inputs to follow the alphabet orderYuri Rubinsky2024-08-201-141/+140
|/
* Merge pull request #95465 from jsjtxietian/remove-category-warningRémi Verschelde2024-08-161-1/+0
|\ | | | | | | Remove `missing a category` warning in visual shader node
| * Remove `missing a category` warning in visual shader nodejsjtxietian2024-08-131-1/+0
| |
* | Change "Node3D" to "Spatial" in VisualShader resourcetetrapod002024-08-121-9/+9
|/
* Fix internal connection count decreased if visual shader node removedYuri Rubinsky2024-07-181-0/+1
|
* Add few new outputs to the visual shadersYuri Rubinsky2024-07-121-0/+2
|
* Fix bugs in visual shader varyingsYuri Rubinsky2024-06-161-24/+29
|
* Fix incorrect preview port in visual shaderYuri Rubinsky2024-06-141-6/+1
|
* Merge pull request #92847 from aaronp64/varying_getter_port_typeRémi Verschelde2024-06-111-3/+3
|\ | | | | | | Fix `VisualShaderNodeVaryingGetter` expanded ports adding ".x" to shader
| * Fix VisualShaderNodeVaryingGetter expanded ports adding ".x" to shaderaaronp642024-06-061-3/+3
| | | | | | | | | | | | When VisualShaderNodeVaryingGetter type was Vector2/Vector3/Vector4, expanding the output ports and connecting an individual value to a scalar input would add ".x" to the assignment in the generated shader. This was due to `VisualShaderNodeVarying::get_port_type` ignoring the port number, and always returning the associated vector type. Added checks for `p_port == 0` to return either the vector type, or scalar for expanded ports, matching similar logic in other nodes, like `VisualShaderNodeColorConstant::get_output_port_type`. Fixes #92832
* | Merge pull request #90850 from AlexeyBond/patch-1Rémi Verschelde2024-06-071-0/+4
|\ \ | |/ |/| | | Handle Vector4 default input values in visual shaders
| * fix: Handle Vector4 default input values in visual shadersAlexey Bondarenko2024-04-181-0/+4
| |
* | Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+1
| |
* | [VisualShader] Add reroute node and improve port drawingHendrik Brucker2024-05-131-4/+92
| |
* | Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-041-26/+28
| | | | | | | | | | | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* | Merge pull request #90892 from Chaosus/vs_fix_expression_port_expandRémi Verschelde2024-05-011-0/+4
|\ \ | | | | | | | | | Prevent expanding output port in visual shader expression
| * | Prevent expanding output port in visual shader expressionYuri Rubinsky2024-04-191-0/+4
| |/
* / Rename internal is_ascii_char to is_ascii_alphabet_charAaron Franke2024-04-201-2/+2
|/
* [Compatibility] Add stub for VisualShaderNodeCommentHendrik Brucker2024-04-181-1/+20
|
* Add GraphFrame and integrate it in VisualShaderHendrik Brucker2024-04-041-23/+124
|
* Refactor the parsing of port names in visual shader's expressionsYuri Rubinsky2024-03-211-52/+45
|
* Redesign the graph editor for visual shadersHendrik Brucker2024-02-221-0/+5
|
* Merge pull request #86564 from Giwayume/feature/canvas-item-shader-custom-dataRémi Verschelde2024-02-081-0/+2
|\ | | | | | | Support CUSTOM shader attributes in 2D
| * Add custom shader attributes to Canvas Item ShadersGiwayume2024-01-231-0/+2
| |
* | Check is the ref shader valid in visual shader's update_option_menujsjtxietian2024-01-251-0/+4
| |
* | Add connection-related VisualShader operationsHendrik Brucker2024-01-191-0/+14
| | | | | | | | | | | | - Insert a node in a connection - Drop an unconnected node on a connection to insert it - Delete a connection
* | Merge pull request #84348 from ↵Rémi Verschelde2024-01-041-4/+4
|\ \ | |/ |/| | | | | | | jsjtxietian/screen-uv-in-visual-shader-preview-should-uv Fix visual shader's `screen_uv` input preview uses position of node rather than a sample area like uv
| * Fix visual shader's screen_uv input preview uses position of nodejsjtxietian2023-11-061-4/+4
| | | | | | | | rather than a sample area like uv
* | Visual shader refacter use of connectionAlistair Leslie-Hughes2023-12-121-6/+7
| |
* | Fix VisualShader connection use after free.Alistair Leslie-Hughes2023-11-141-1/+1
|/
* Merge pull request #83194 from jsjtxietian/fix-bool-varying-code-genRémi Verschelde2023-10-131-3/+0
|\ | | | | | | Fix bool varying's generated code will be modified with flat
| * Fix bool varying's generated code will be modified with flatjsjtxietian2023-10-121-3/+0
| |
* | Fix parameter shader node not declared when only connected to a VaryingSetterjsjtxietian2023-10-121-1/+1
|/