summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader_nodes.cpp
AgeCommit message (Collapse)Author
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
2019-09-05Removed useless code from Switch in visual shaderChaosus89
2019-09-03Some improvements for Switch node in visual shadersChaosus89
2019-08-06Some improvements to Mix visual shader functionYuri Roubinski
2019-08-01Fix outerProduct function in visual shadersChaosus
2019-07-19i18n: Sync translation template with current sourceRémi Verschelde
Fix a few typos in new strings.
2019-07-15Merge pull request #30532 from Chaosus/vs_triplanarRémi Verschelde
Added triplanar uniform texture node to visual shaders
2019-07-12Added "Is" and "Compare" functions to visual shadersChaosus
2019-07-12Added triplanar uniform texture node to visual shadersChaosus
2019-07-05Added DEPTH_TEXTURE to visual shadersChaosus
2019-05-19Added Fresnel and OneMinus to visual shadersChaosus