summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader.cpp
AgeCommit message (Collapse)Author
2021-02-11Improve resource load cachereduz
-Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-01-18Added SDF nodes to visual shaderYuri Roubinsky
2021-01-15Fix replaced visual shader nodes updatingYuri Roubinsky
2021-01-15Merge pull request #44805 from Chaosus/vs_convertRémi Verschelde
Add convert options between constants and uniforms in visual shaders
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-30Add convert options between constants and uniforms in visual shadersYuri Roubinsky
2020-12-29Consistently use normal_mapMarcel Admiraal
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-02Fixed some errors when changing port name in visual shader expressionsYuri Roubinsky
2020-12-01Fix few bugs in visual shader expressionsYuri Roubinsky
Fixed few bugs in visual shader expressions
2020-11-29Fixed several visual shader inputsYuri Roubinsky
Fixed several inputs in visual shaders
2020-11-28Fixed invalid visual shader outputs (TRANSMISSION, ALPHA_SCISSOR)Yuri Roubinsky
2020-11-16Remove empty lines around braces with the formatting scriptAaron Franke
2020-11-07Reorganized core/ directory, it was too fatty alreadyreduz
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
2020-10-27Visual Shader Parenthesis fixLuke Costello
missing parenthesis were added to prevent conditional statement from interacting with operations
2020-10-18Added VisualShaderNodeCurve to easy gather data from a CurveTextureYuri Roubinsky
2020-10-10Adds Metallic to spatial light input of visual shadersYuri Roubinsky
2020-10-02Fix VisualShaderNode::set_output_port_connectedYuri Roubinsky
2020-09-22Fix expressions nodes in visual shadersYuri Roubinsky
2020-09-21Fix some bugs in visual shader editorYuri Roubinsky
2020-09-11Fix triplanar texture code generation in visual shadersYuri Roubinsky
2020-09-11Merge pull request #41955 from Chaosus/vs_performance_fix3Yuri Roubinsky
Improve performance of Add/Remove/Connect/Change nodes in visual shader
2020-09-11Improve performance of Add/Remove/Connect/Change nodes in visual shaderYuri Roubinsky
2020-09-11doc: Sync classref with current sourceRémi Verschelde
Bind missing enums.
2020-09-09Improve performance for Show/Hide port preview in visual shadersYuri Roubinsky
2020-09-09Improve performance of Undo:change node position in visual shaderYuri Roubinsky
2020-09-07Added `active` boolean to particles mode output in visual shadersYuri Roubinsky
2020-09-07Remakes particles in visual shadersYuri Roubinsky
2020-09-07Fix some broken visual shader nodesYuri Roubinsky
2020-09-05Cleanup constructor code in visual shader nodesYuri Roubinsky
2020-09-04doc: Sync classref with current sourceRémi Verschelde
2020-09-03Merge pull request #41724 from Chaosus/vs_fix_particlesYuri Roubinsky
Restore Particles functionality in visual shader
2020-09-03Restore Particles functionality in visual shaderYuri Roubinsky
2020-08-28Fix specular render_mode for visual shaders Yuri Roubinsky
2020-07-31Fix small reconnection bug in visual shaderYuri Roubinsky
2020-07-28Added UniformRef visual shader nodeYuri Roubinsky
2020-07-27Optimize code generation for fresnel node in visual shadersYuri Roubinsky
2020-07-26Removes redundant code generation in VisualShaderNodeTextureUniformYuri Roubinsky
2020-06-15Use path instead classname to prevent errors for exported visual shadersYuri Roubinsky
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-05-10Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde
Part of #33027.
2020-05-06Merge pull request #38475 from Chaosus/vs_qualsRémi Verschelde
Added uniform qualifiers to visual shaders
2020-05-05Some fixes for canvas item visual shader inputsYuri Roubinsky
2020-05-05Added uniform qualifiers to visual shadersYuri Roubinsky
2020-04-06Adds warning to the uniform name in visual shader if its equal to keywordYuri Roubinsky
2020-04-02Replace NULL with nullptrlupoDharkael
2020-04-01some typo in method binds fixedThakee Nathees