summaryrefslogtreecommitdiff
path: root/servers/visual/shader_language.cpp
AgeCommit message (Collapse)Author
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-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
2019-10-06Fix few redefinition name errors for variable/param/function in shadersYuri Roubinsky
2019-10-02Removed unnecessary shader error log messagesYuri Roubinsky
2019-09-14Implement shader array support for varyingsChaosus
2019-08-28Fix shader crash when users miss the return statementYuri Roubinski
2019-08-23Implements switch to shadersYuri Roubinski
2019-08-13Implemented do/while loops for shadersYuri Roubinski
2019-08-13Force user to initialize local shader constantsYuri Roubinski
2019-08-09Show that identifier found in function namesCameron Reikes
2019-08-05Implemented local shader constantsYuri Roubinski
2019-07-23Fix some code found by Coverity Scan and PVS Studioqarmin
2019-07-16Allows to use non-constants in the local shader array initializerChaosus
2019-07-16Added local array initializerChaosus
2019-07-15Implemented local shader arraysChaosus
2019-07-15Added missed "textureProjLod" shader built-in overload for 3D texturesChaosus
2019-07-11Make the default return value on crash explicithbina085
Noticed that the error condition will return a NULL instead of something more explicit like "false". Should make the code more readable at a glance.
2019-07-11Removed invalid mix shader overloadsChaosus
2019-07-09Fix "not" shader function return typeChaosus
2019-07-06Fix code completion for shader editorgeequlim
2019-06-01Added constant support to shadersChaosus
Co-authored-by: DavidSichma <sichmada@gmail.com>
2019-05-24Merge pull request #28829 from vreon/swizzle-upRémi Verschelde
Allow constructing larger data types by swizzling
2019-05-19Fix typos with codespellRémi Verschelde
Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2019-05-11Allow constructing larger data types by swizzlingJesse Dubay
GLSL allows the construction of larger data types by swizzling smaller ones, but Godot shading language treated this as an error: vec2 test2 = vec2(0.0, 1.0); vec3 test3 = test2.xxx; // error: Invalid member for vec2 expression This commit updates the expression parser for the 2 and 3-component data types accordingly. Fixes #10496
2019-04-09Style: Apply new changes from clang-format 8.0Rémi Verschelde
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
2019-02-26Ensure implicit conversions for scalar constants work in shaders, closes #26239Juan Linietsky
2019-02-23-Treat scalar conversions when calling functions as error, closes #24261Juan Linietsky
-Make shader editor display errors if exist when just opening it -Make ShaderMaterial not lose parameters if opened in error.
2019-02-20Add -Wshadow=local to warnings and fix reported issues.marxin
Fixes #25316.
2019-01-30Fix many asan and ubsan reported issuesHein-Pieter van Braam
This allows most demos to run without any ubsan or asan errors. There are still some things in thirdpart/ and some things in AudioServer that needs a look but this fixes a lot of issues. This should help debug less obvious issues, hopefully. This fixes #25217 and fixes #25218
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-30Always treat exponent as floatBastiaan Olij
2018-11-24Allow *= operator between vec and mat types in shadersKanabenki
2018-11-21Removed noperspective (not in GLSL ES 3.0), do not write smooth if not ↵Juan Linietsky
specified. Fixes #20435
2018-11-16Use hint_color when getting shader default paramsJFonS
2018-11-14Proper validation of out arguments in built-in shader functions, closes #16244Juan Linietsky
2018-11-12Do not allow samplers where they dont belong (variables/return types), fixes ↵Juan Linietsky
#15133
2018-10-25fixed uninitialized variables and false positives found by CppCheckSimon Wenner
2018-10-19Fixing warnings generated by MSVCDualtagh Murray
Fixes #22684.