summaryrefslogtreecommitdiffstats
path: root/servers/rendering/shader_language.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@87318a2fb7fffeb72adca934e31915be077c3d1fSpartan3222024-11-061-1/+1
|\
| * Style: Apply `clang-tidy` fixesThaddeus Crews2024-11-041-1/+1
| | | | | | | | | | • `modernize-use-default-member-init` and `readability-redundant-member-init` • Minor adjustments to `.clang-tidy` to improve syntax & remove redundancies
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Merge commit godotengine/godot@1015a481ff43edb1126ab39a147fefda290131e5Spartan3222024-10-241-1/+3
|\|
| * Merge pull request #93590 from Chaosus/shader_custom_func_discardYuri Rubinsky2024-10-241-1/+2
| |\ | | | | | | Allow usage of `discard` inside custom shader functions
| | * Allow usage of `discard` inside custom shader functionsYuri Rubinsky2024-10-171-1/+2
| | |
| * | Allow using stage functions inside custom shader functionsYuri Rubinsky2024-10-171-0/+1
| |/
* | Merge commit godotengine/godot@af77100e394dcaca609b15bef815ed17475e51edSpartan3222024-10-151-0/+4
|\|
| * Implement custom function overloading in shading languageYuri Rubinsky2024-10-081-0/+4
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Add external texture support (GLES3)David Snopek2024-09-201-0/+2
| | | | | Co-authored-by: Fredia Huya-Kouadio <fhuyakou@gmail.com> Co-authored-by: Mauricio Narvaez <nvz@meta.com>
* Fix shader incorrectly expects `int` on `uint` and vice-versa in casesChaosus2024-09-111-0/+3
|
* Add basic support to evaluate operator value in shader languageYuri Rubinsky2024-09-091-14/+30
|
* Merge pull request #94352 from Chaosus/shader_ternary_fixRémi Verschelde2024-08-281-2/+8
|\ | | | | | | Fix multiple ternary expressions to be used without parenthesis
| * Fix multiple ternary expressions to be used without parenthesisYuri Rubinsky2024-07-171-2/+8
| |
* | Merge pull request #94324 from SomeRanDev/shader_hint_enumRémi Verschelde2024-08-201-0/+4
|\ \ | | | | | | | | | GDShader: Add `hint_enum` for `uniform int`
| * | Add `hint_enum` for uniform int in gdshaderRobert Borghese2024-07-131-0/+4
| |/
* | Merge pull request #94785 from Chaosus/shader_fix_samplers_orderRémi Verschelde2024-08-191-0/+6
|\ \ | | | | | | | | | Fix texture samplers to not being last in the property list
| * | Fix texture samplers to not being last in the property listYuri Rubinsky2024-07-291-0/+6
| | |
* | | Fix shader crash when the comma used in `for` loop as a trailingChaosus2024-08-101-0/+1
| | |
* | | Restrict sampler hint validation to only screen texture hintsclayjohn2024-07-281-0/+1
|/ /
* | Emit normal_roughness compatibility code in custom functionsclayjohn2024-07-261-37/+38
| |
* | Fix shader crash when using a varying in separate func before it definedYuri Rubinsky2024-07-231-1/+14
|/
* Improve code for setup of `global_func_set` in `ShaderLanguage`Yuri Rubinsky2024-07-021-0/+2
|
* Merge pull request #93469 from Chaosus/shader_fix_crashRémi Verschelde2024-06-251-1/+1
|\ | | | | | | Fix crash on shader constant initialization on MinGW compiler
| * Fix crash on shader constant initialization on MinGW compilerYuri Rubinsky2024-06-221-1/+1
| |
* | Forbid calling of derivative functions in incorrect functionsYuri Rubinsky2024-06-211-0/+18
|/
* Prevent using built-ins for func names in shadersYuri Rubinsky2024-05-301-1/+1
|
* Fix completion of functions with struct param/return type in shadersYuri Rubinsky2024-05-281-2/+2
|
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-1/+1
|
* Add const lvalue ref to container parametersMuller-Castro2024-01-051-2/+2
|
* Merge pull request #81619 from Chaosus/fix_shader_constRémi Verschelde2023-10-031-1/+2
|\ | | | | | | Re-allows constants in global space to be initialized with function call
| * Re-allows constants in global space to be initialized with function callYuri Roubinski2023-09-131-1/+2
| |
* | Fix shader language preprocessor include marker handlingbitsawer2023-09-061-0/+1
|/
* Enable shadow warnings and fix raised errorsNinni Pipping2023-05-111-24/+24
|
* Forbid passing multiview sampler to the custom function in shadersYuri Rubinsky2023-02-211-1/+1
|
* Fix shader failure when using non-const initializer on a constantYuri Rubinsky2023-02-011-1/+1
|
* 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-0/+2
|
* Refactor `ShaderData` & fix the sorting of shader uniformsYuri Rubinsky2022-12-151-0/+6
|
* Mark shader built-ins as used when passed to functions as out parameter Yuri Rubinsky2022-11-151-0/+1
|
* Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable usedRémi Verschelde2022-09-281-1/+1
|
* Prevent duplicated hints in shader uniform completionYuri Rubinsky2022-09-111-0/+4
|
* Add shader uniform hints for screen textures so users can specify custom ↵clayjohn2022-08-091-0/+6
| | | | | | | | filter and repeat modes. At this time, it works best in the Vulkan Renderers as they support using multiple samplers with the same texture. In GLES3 this feature really only allows you to use the screen texture without mipmaps if you want to save the cost of generating them.
* Add `hint_transparent` to use a transparent black placeholder textureHugo Locurcio2022-08-011-0/+2
| | | | | This can be used in shaders to avoid the need to supply a transparent placeholder texture manually.
* Rename RenderingServer global shader uniform methods to be more explicitHugo Locurcio2022-07-281-3/+3
| | | | | The `global_shader_uniform` name is longer, but it makes it much easier to find the methods when searching in the class reference.
* Implement shader uniform groups/subgroupsYuri Rubinsky2022-07-261-0/+6
|
* Fix errors when using built-ins in shaderincYuri Rubinsky2022-07-251-1/+2
|
* Clean up Shader Preprocessorreduz2022-07-221-4/+9
| | | | | | | | | * Moved preprocessor to Shader and ShaderInclude * Clean up RenderingServer side * Preprocessor is separate from parser now, but it emits tokens with include location hints. * Improved ShaderEditor validation code * Added include file code completion * Added notification for all files affected by a broken include.
* Adding shader preprocessor supportYuri Roubinsky2022-07-221-1/+7
| | | | Co-authored-by: TheOrangeDay <6472143+TheOrangeDay@users.noreply.github.com>