summaryrefslogtreecommitdiff
path: root/servers/rendering/shader_language.h
AgeCommit message (Collapse)Author
2022-06-14Remove GLES2 shader constraints from GLES3clayjohn
2022-05-31Refactor shader hintsYuri Rubinsky
2022-05-24Merge pull request #60803 from Chaosus/shader_hint_renameRémi Verschelde
Rename `hint_albedo`, `hint_white/black` in shaders
2022-05-23Merge pull request #61226 from Chaosus/shader_fix_keyword_completionRémi Verschelde
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-20Fix incorrect keyword completion after period in shader editorYuri Rubinsky
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-09Rename `hint_albedo`, `hint_white/black` in shadersYuri Roubinsky
2022-05-04Merge pull request #60568 from Chaosus/shader_keyword_completionsRémi Verschelde
Add keyword completion to shader editor
2022-05-02Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde
Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
2022-04-29Add keyword completion to shader editorYuri Roubinsky
2022-04-26Prevent shader crash when using precision on boolean typesYuri Roubinsky
2022-04-12Merge pull request #59825 from Chaosus/shader_fixRémi Verschelde
Fix incorrect parsing array's `length()` at return statement in shader
2022-04-04Zero initialize all pointer class and struct membersRémi Verschelde
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
2022-04-03Fix incorrect parsing array's `length()` at return statement in shaderYuri Roubinsky
2022-03-27Add GDExtension support to Scriptreduz
* Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
2022-02-03Allow multiple declarations in for loop in a shaderYuri Roubinsky
2022-01-19Add translation links to shader errorsYuri Roubinsky
2022-01-18Unify variable and array declarations in shadersYuri Roubinsky
2022-01-15Refactor size expression parsing for arrays in the shadersYuri Roubinsky
2022-01-13Add completion for shader_typeYuri Roubinsky
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-03Add a shader warning when the uniform buffer limit is exceededYuri Roubinsky
2021-12-23Allow pass varyings as out param to the function, when it's possibleYuri Roubinsky
2021-12-21Refactor render_mode in shaders, forbid declaring duplicatesYuri Roubinsky
2021-12-15Rename shader hint `filter_anisotropy` to `filter_anisotropic`Yuri Roubinsky
2021-12-15Fix shader array parsing in variable declarationYuri Roubinsky
2021-12-15Merge pull request #55913 from Chaosus/fix_shader_crashRémi Verschelde
2021-12-15Rename shader hint `filter_aniso` to `filter_anisotropy`Yuri Roubinsky
2021-12-13Fix shader crash when assigned array from struct to a variable by indexYuri Roubinsky
2021-12-10Rename `hint_aniso` to `hint_anisotropy` in the shader languageHugo Locurcio
The word "anisotropy" is used in full form in BaseMaterial3D's anisotropy-related properties.
2021-12-10Refactor constant suffix parsing in a shaderYuri Roubinsky
2021-12-10Added completion for uniform hints in a shaderYuri Roubinsky
2021-12-08Make `compile` shader function to use struct instead long parameter listYuri Roubinsky
2021-12-01Allow using empty statements in the shader, added formatting warningYuri Roubinsky
2021-11-29Fix built-in(PI, TAU, E) assignment to a global constant in a shaderYuri Roubinsky
2021-10-13Added few more built-ins to shader languageYuri Roubinsky
2021-10-08Allow declare the shader arrays with a size defined before identifierYuri Roubinsky
2021-10-05Fix shader crash when passing array.length to functionsYuri Roubinsky
and similar cases
2021-10-04Added support for uniform arrays in shadersYuri Roubinsky
2021-08-18More fixes to mobile rendererreduz
* Specify all precision qualifiers * Makes renderer work on Adreno Vulkan
2021-08-13Fix shader crash when using local var with the same name as varyingYuri Roubinsky
2021-08-12Added parameter names to shader built-in function autocompletionYuri Roubinsky
2021-07-26Prevents shader crashing if varying assigned incorrectlyYuri Roubinsky
2021-07-26Merge pull request #50729 from Chaosus/shader_varying_enchancements2Rémi Verschelde
Allow using vertex-stage varying in both `fragment` and `light` functions
2021-07-22Allow using vertex-stage varying in both `fragment` and `light` Yuri Roubinsky
2021-07-22Allow using vertex varying in custom functions under any circumstancesYuri Roubinsky
2021-06-29Added a shader warning about unused local variable Yuri Roubinsky
2021-06-10Fix `length()` array function usage in shaderYuri Roubinsky
2021-05-22Allow shader arrays to be passed as parameters and return valueYuri Roubinsky