summaryrefslogtreecommitdiff
path: root/servers/visual/shader_language.cpp
AgeCommit message (Collapse)Author
2020-03-20Fix incorrect shader block parsingYuri Roubinsky
2020-03-20Allow to reassign local variables in shadersYuri Roubinsky
2020-03-19Fix shader TIME auto-completionYuri Roubinsky
2020-03-19Makes shader 'TIME' available in custom functions by defaultYuri Roubinsky
2020-03-18Show shader method out/inout qualifier in intellisenseYuri Roubinsky
2020-03-18Fix shader crash if passing const values to modf functionYuri Roubinsky
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
2020-03-14Enables passing out built-in parameter from parent function in shadersYuri Roubinsky
2020-03-11Fix various typosluz.paz
Found via `codespell`
2020-02-29Fix shader's step hint range for integersYuri 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-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-15Fix shader crash if duplicated struct members createdYuri Roubinsky
2020-02-14Fix various GCC compilation warnings after Vulkan mergeRémi Verschelde
Part of #36132.
2020-02-13Prevent usage 'out' modifier on opaque shader types (textures currently)Yuri Roubinsky
2020-02-13Fix bugs in shader swizzlingYuri Roubinsky
2020-02-13Fix shader crash if pass const argument to 'out/inout' parameterYuri Roubinsky
2020-02-12Added support for arrays as shader struct membersYuri Roubinsky
2020-02-11Implementation of 'struct' for shadersYuri Roubinsky
2020-02-11Modernized default 3D material, fixes material bugs.Juan Linietsky
2020-02-11Several fixes to 3D rendering, and multimesh implementation.Juan Linietsky
2020-02-11Completed material/2D shader support (missing SCREEN_TEXTURE)Juan Linietsky
2020-02-07Merge pull request #35986 from Chaosus/shader_indexRémi Verschelde
Allow non-constants for indexing builtin types in shaders
2020-02-07Merge pull request #35142 from clayjohn/GLES2-add-3d-texturesRémi Verschelde
Add support for 3D textures to GLES2
2020-02-07Allow non-constants for indexing builtin types in shadersYuri Roubinsky
2020-02-07Prevent shader crash if invalid builtin used after array member accessorYuri Roubinsky
2020-02-01Prevent shader crash when name conflict with "dus" and "__" occuredYuri Roubinsky
2020-01-31Add support for 3D textures to GLES2clayjohn
2020-01-23Hides high-level functions from GLES2 shader autocompletionYuri Roubinsky
2020-01-20Disallow uint/uvec usage on GLES2 platformYuri Roubinsky
2020-01-19Clears completion_class in shaders (may cause troubles if not).Yuri Roubinsky
2020-01-18Added missing form of array constructor in shadersYuri Roubinsky
2020-01-16Disabled array initialization, const array and arr.length in shadersYuri Roubinsky
2020-01-10Fix nested break/return in shader switch statementYuri Roubinsky
2020-01-08Merge pull request #34671 from Chaosus/shader_hex_supportRémi Verschelde
Support for hex numbers in shaders
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-29Support for hex numbers in shadersYuri Roubinsky
2019-12-10Merge pull request #34040 from qarmin/unused_variable_more_precise_numbersRémi Verschelde
Removed unused variables, add some constants numbers
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-12-02Fix expressions for global constants in shadersYuri Roubinsky
2019-11-18Fix Visual Studio throwing C4146 warning.Marcel Admiraal
2019-11-03Prevents usage of unsupported texture shader types in GLES2Yuri Roubinsky
2019-11-02Removed switch operator from GLES2 shader back-endYuri Roubinsky
2019-10-31Prevents shader crash on GLES2 if unsupported built-in has been usedYuri Roubinsky
2019-10-29Added check if field name in the shader is equal to builtinYuri Roubinsky
2019-10-28Fix shader crash if non-boolean expression inserted into "if"Yuri Roubinsky
2019-10-26Improve error messages related to `shader_type`Hugo Locurcio
The list of allowed shader types is now displayed if any `shader_type`-related error is emitted. This makes it easier to remember which shader types are allowed when creating a new shader.
2019-10-08Fix invalid autocompletion pasting of shader param nameYuri Roubinsky
2019-10-06Prevent shader crash if name of variable overrides function nameYuri Roubinsky
2019-10-06Prevent shader crash if function call been used on constantYuri Roubinsky