summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader_nodes.cpp
AgeCommit message (Collapse)Author
2021-03-01Merge pull request #46539 from Chaosus/vs_fix_returnRémi Verschelde
Removes redundant code from get_input/output_port_type (visual shaders)
2021-03-01Fix incorrect switching port type in VisualShaderNodeStepYuri Roubinsky
2021-03-01Removes redundant code from get_input/output/_port_type (visual shaders)Yuri Roubinsky
2021-01-18Unified several visual shader nodesYuri 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-11-26Added extra warning to VisualShaderNodeTexture + fix warning appearingYuri Roubinsky
2020-10-18Added VisualShaderNodeCurve to easy gather data from a CurveTextureYuri Roubinsky
2020-10-04Fix typo in VisualShaderNodeSample3D::generate_codeYuri Roubinsky
2020-10-03Fix def parameter in Texture visual shader nodes for sky/particles modesYuri Roubinsky
2020-09-29Merge pull request #42078 from Chaosus/vs_rename_typeRémi Verschelde
Renames Type to OpType in VisualShaderNodeMultiplyAdd
2020-09-21Fix some bugs in visual shader editorYuri Roubinsky
2020-09-15Renames Type to OpType in VisualShaderNodeMultiplyAddYuri Roubinsky
To prevent possible conflicts with C# and other languages.
2020-09-11Fix triplanar texture code generation in visual shadersYuri Roubinsky
2020-09-10Added Texture3D to visual shadersYuri Roubinsky
2020-09-07Fix some broken visual shader nodesYuri Roubinsky
2020-09-05Cleanup constructor code in visual shader nodesYuri Roubinsky
2020-07-27Added default value for uniforms in visual shadersYuri Roubinsky
2020-07-27Optimize code generation for fresnel node in visual shadersYuri Roubinsky
2020-07-26Removes redundant code generation in VisualShaderNodeTextureUniformYuri Roubinsky
2020-07-10Added 'fma' function to shader languageYuri Roubinsky
2020-06-19Added Texture2DArray support to 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: 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-05Added uniform qualifiers to visual shadersYuri Roubinsky
2020-02-26Add support for integer type in visual shadersYuri Roubinsky
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-02-07Implemented hint_range for VisualShaderNodeScalarUniformYuri Roubinsky
2020-02-03Added missing '\n' in visual shader fresnel node code generationYuri Roubinsky
2020-02-01Few extra formatting fixes for visual shader node generationYuri Roubinsky
For 'If' and 'Switch' nodes
2020-02-01Better visual shader code generationYuri Roubinsky
2020-01-27Added missed bracket to VisualShaderNodeCubeMapYuri Roubinsky
2020-01-27Fix VisualShaderNodeCubeMap generationYuri Roubinsky
2020-01-23Docs for some nodes in visual shaderYuri Roubinsky
Fix typo in `VisualShaderNodeCompare.ComparisonType` name.
2020-01-08Merge pull request #33817 from Chaosus/vs_fresnelYuri Roubinsky
Make Fresnel node in visual shaders to use default NORMAL/VIEW
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-12Added missed enum constant VisualShaderNodeTexture::SOURCE_PORTYuri Roubinsky
2019-11-22Makes Fresnel node in visual shaders to use default NORMAL/VIEWYuri Roubinsky
2019-11-03Added sampler inputs for visual shadersYuri Roubinsky
2019-11-01Fix some crashes, overflows and using variables without valuesRafał Mikrut
2019-10-11[VShaders] Added sampler port to CubeMap, fixed parsing in expresssion sYuri Roubinsky
2019-10-10Uses LoD even if UV slot is not used in visual shader texturesYuri Roubinsky
2019-10-09Makes cube maps to be works in visual shadersYuri Roubinsky
2019-10-03Makes Texture and TextureUniform in visual shaders to use UV by defaultYuri Roubinsky
2019-10-01Added sampler port type for visual shadersChaosus
2019-09-18Some formatting fixes in visual_shader_nodes.cppYuri Rou