summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader.cpp
AgeCommit message (Collapse)Author
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
2020-03-27Renaming of servers for coherency.Juan Linietsky
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
2020-03-27Renamed 2D and 3D nodes to make their types explicitJuan Linietsky
Fixes #30736.
2020-03-25Added sky shader mode to visual shadersYuri Roubinsky
2020-02-28Signals: Port connect calls to use callable_mpRémi Verschelde
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
2020-02-26Changed float type to int for INDEX visual shader inputYuri 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-21Merge pull request #36421 from Chaosus/vs_sort_custom_nodsYuri Roubinsky
Refactor node processing in visual shader member dialog
2020-02-21Refactor node processing in visual shader member dialogYuri Roubinsky
2020-02-21Added StringName as a variant type.Juan Linietsky
Also changed all relevant properties defined manually to StringName.
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-13Added virtual method to VisualShaderNodeCustom to enable high-end markYuri Roubinsky
2020-02-03Added missing '\n' in visual shader expression node code generationYuri Roubinsky
2020-02-01Added missing '\n' in visual shader custom node code generationYuri Roubinsky
2020-02-01Merge pull request #35618 from Chaosus/vs_improvementsYuri Roubinsky
Better visual shader code generation
2020-02-01Better visual shader code generationYuri Roubinsky
2020-01-31Fix canvas_item light alpha output in visual shadersYuri Roubinsky
2020-01-28Hide "control" methods from VisualShaderNodeGroupBaseYuri Roubinsky
2020-01-28Hide "editable" property from VisualShaderNodeGroupBase public interfaceYuri Roubinsky
2020-01-27Added missing property "size" to VisualShaderNodeGroupBaseYuri Roubinsky
2020-01-27Removed unused method "build" from VisualShaderNodeExpressionYuri Roubinsky
2020-01-23Hide "default_input_values" property in VisualShaderNode.Yuri Roubinsky
2020-01-20Forbid recursive connections in visual shaderYuri Roubinsky
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-10Fixes crash when shader inputs/outputs is invalid stringHaoyu Qiu
2019-11-04Fix invalid casting on visual shader samplerYuri Roubinsky
2019-11-03Added sampler inputs for visual shadersYuri Roubinsky
2019-10-29Removes translations from generated visual shader codeYuri Roubinsky
2019-10-11[VShaders] Added sampler port to CubeMap, fixed parsing in expresssion sYuri Roubinsky
2019-10-10Removed "rebuild" function from public interface of VisualShaderYuri 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-02Fix global code in visual shaders if two or more custom nodes are usedYuri Roubinsky
2019-10-01Added sampler port type for visual shadersChaosus
2019-09-24doc: Sync classref with current sourceRémi Verschelde
Fix a few missing bindings or unspecified argument names and default values.
2019-09-05Fix formatting error for bool in resulted code of visual shaderChaosus89
2019-09-04Added missing OUTPUT_IS_SRGB and FRONT_FACING to visual shadersChaosus89
2019-09-04Fix parsing array indexing symbol in visual shader expressionChaosus89