summaryrefslogtreecommitdiffstats
path: root/servers/rendering/shader_language.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #79459 from MoltenCoffee/fix-shader-arguments-errorYuri Sizov2023-07-241-4/+8
|\ | | | | | | Add error for undefined function in shader
| * Add error for undefined function in shaderMoltenCoffee2023-07-181-4/+8
| |
* | Add autocomplete for filter/repeat hints on uniform arraysHayden Leete2023-07-131-12/+12
|/
* Merge pull request #79100 from ↵Yuri Sizov2023-07-121-1/+6
|\ | | | | | | | | | | KoBeWi/[filter,_filter,_filter,_filter,_filter,_filter] Allow more hint types for uniform arrays
| * Allow more hint types for uniform arrayskobewi2023-07-061-1/+6
| |
* | Merge pull request #78839 from lewiji/normal_roughness_mobile_fixRémi Verschelde2023-07-081-2/+2
|\ \ | | | | | | | | | Fix invalid shader compilation when using `hint_normal_roughness_texture` in mobile backend
| * | Return shader parse error when using 'hint_normal_roughness_texture' and not ↵lewiji2023-06-291-2/+2
| |/ | | | | | | using the Forward+ backend
* / Fix using uint suffix at the hex number declaration in shadersYuri Roubinski2023-07-011-1/+8
|/
* Fix shader uniform storage conversions and crashbitsawer2023-05-291-7/+7
|
* Exclude incorrect completion options for `render_mode` in shadersYuri Rubinsky2023-05-151-0/+6
|
* Enable shadow warnings and fix raised errorsNinni Pipping2023-05-111-57/+57
|
* Fix completion of `source_color` hint for texture arrays in shadersYuri Rubinsky2023-04-081-29/+35
|
* Error on hint_normal_roughness_texture and hint_depth_texture outside of ↵Fabio Iotti2023-03-031-0/+8
| | | | spatial shader
* Forbid passing multiview sampler to the custom function in shadersYuri Rubinsky2023-02-211-2/+17
|
* Improvements and fixes based on Weblate commentsHaoyu Qiu2023-02-131-1/+1
| | | | | | | | | | | | | | | | | | | * Description of `ui_text_submit` action should be "Submit Text" instead of "Text Submitted". * Spell out "Animation" instead of using "Anim.". * Treat "Max" as regular word instead of writing "Max.". * Use generic "Set %s" for action name instead of a dedicated "Set target_position". * Add translator comment for: * "Inclusive" and "Self" in the profiler. * Places where it needs the context about being an editor progress label. * "Duplicated Animation Name" since it's refering to the new name of a duplicated animation. * Disambiguation of "View Plane Transform", "Paste Selects" and "Display Normal". * Fix wrong undo action name for renaming an input action. * Fix missing end quote in a shader error message. * In class reference: * Fix duplicated "if" in the description of `signf()`. * Fix mismatched example output in `String.operator %()`. * Fix typo in the description of `Decal.texture_emission`. * Unify description of `String.match()` and `StringName.match()`.
* Improve some editor strings for localizationHaoyu Qiu2023-02-091-2/+2
|
* Mark fma function as high end so it isn't used with the gl_compatibility ↵clayjohn2023-02-081-4/+4
| | | | renderer
* Merge pull request #72494 from Chaosus/shader_fix_const_initRémi Verschelde2023-02-021-1/+23
|\ | | | | | | Fix shader failure when using non-const initializer on a constant
| * Fix shader failure when using non-const initializer on a constantYuri Rubinsky2023-02-011-1/+23
| |
* | More codespell fixes, do more changes from previous ignore listRémi Verschelde2023-02-011-4/+4
|/
* Add a shader error when trying to using hint_normal_roughness_texture in the ↵clayjohn2023-01-301-0/+4
| | | | gl_compatibility renderer
* Merge pull request #72138 from clayjohn/GL-globalsRémi Verschelde2023-01-261-0/+4
|\ | | | | | | Properly append global uniform buffer name in gl_compatibility shaders
| * Properly append global uniform buffer name in gl_compatibility shadersclayjohn2023-01-261-0/+4
| | | | | | | | Also error when using instance uniforms
* | Merge pull request #72109 from Chaosus/shader_derivativeRémi Verschelde2023-01-261-0/+42
|\ \ | | | | | | | | | Add derivative functions with precision to shaders
| * | Add derivative functions with precision to shadersYuri Rubinsky2023-01-261-0/+42
| |/
* / Several shader preprocessor parser fixes and improvementsbitsawer2023-01-261-1/+1
|/
* Fix array of token names in the shader parser Yuri Rubinsky2023-01-251-5/+15
|
* Fix type in hint when using removed built-in texturesPrecisionRender2023-01-201-1/+1
|
* Decrement texture_binding count when using screen texturesclayjohn2023-01-201-0/+3
|
* Remove SCREEN_TEXTURE, DEPTH_TEXTURE, and NORMAL_ROUGHNESS_TEXTUREclayjohn2023-01-181-0/+6
| | | | in favour of texture hints
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Fix shader crash when using boolean type for vertex->fragment varyingsYuri Rubinsky2022-12-231-2/+33
|
* Add missing != operator to `StringName`Yuri Rubinsky2022-12-201-1/+1
|
* Add MAKE_RESOURCE_TYPE_HINT macro to simplify binding arrays of resourcesRémi Verschelde2022-11-241-3/+3
|
* Shader: Set proper resource type hints for sampler uniformsRémi Verschelde2022-11-221-17/+15
| | | | Supersedes #64383.
* Code simplifications found by cppcheckMarkus Sauermann2022-11-211-2/+2
| | | | | | | They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
* Fix global uniforms parsed as instance uniformLily Garcia2022-11-171-14/+16
|
* Merge pull request #68718 from dzil123/fix_fog_shader_buffer_overflowRémi Verschelde2022-11-161-0/+20
|\ | | | | | | Fix shader compiler asan out of bounds
| * Fix Fog shader buffer overflowdzil1232022-11-151-0/+20
| |
* | Mark shader built-ins as used when passed to functions as out parameter Yuri Rubinsky2022-11-151-0/+19
|/
* Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-21/+21
|
* Some fixes for instance shader parametersYuri Rubinsky2022-11-091-0/+4
|
* Fix predefined constants to be accessible in the shader includesYuri Rubinsky2022-11-011-1/+1
|
* Fix editor crash when assigning some uniform hints to the texturesYuri Rubinsky2022-10-161-0/+3
|
* Merge pull request #66548 from akien-mga/msvc-warnings-c4701-c4703Rémi Verschelde2022-09-281-2/+2
|\ | | | | | | Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable used
| * Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable usedRémi Verschelde2022-09-281-2/+2
| |
* | Fix MSVC warning C4702: unreachable codeRémi Verschelde2022-09-281-2/+0
|/ | | | Part of #66537.
* Prevent duplicated hints in shader uniform completionYuri Rubinsky2022-09-111-14/+34
|
* Remove `shader_type` from completion (when it does not need any more)Yuri Rubinsky2022-09-071-2/+6
|
* Allow using integer varyings with `flat` interpolation modifierYuri Rubinsky2022-08-251-4/+9
|