summaryrefslogtreecommitdiffstats
path: root/servers/rendering/shader_compiler.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #77740 from ChibiDenDen/simplify_vulkanYuri Sizov2023-07-121-1/+15
|\ | | | | | | Replace sampler arrays with constant sampler elements, simplify and reuse code for all shaders
| * replace sampler arrays with constant sampler elementsChibiDenDen2023-06-221-1/+15
| |
* | Merge pull request #78538 from Sauermann/fix-code-simplificationsYuri Sizov2023-07-121-1/+1
|\ \ | | | | | | | | | Remove unnecessary value assignments throughout the codebase
| * | Code simplificationsMarkus Sauermann2023-06-211-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CPPcheck found most of them. no need to assign the variable twice: - AnimationTrackEditTypeAudio - SSEffects variable is assigned in all if-else clauses: - EditorHelp - AndroidInputHandler - MenuBar - ShaderCompiler same if clause: - ItemList clearing an empty bitfield has no effect: - Viewport
* / Fix shader language float literal precision truncationbitsawer2023-07-031-1/+1
|/
* Enable shadow warnings and fix raised errorsNinni Pipping2023-05-111-18/+18
|
* Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-6/+1
|\ | | | | Use `String.repeat()` to optimize several String methods
| * Use String.repeat() in more placesVolTer2023-05-011-6/+1
| |
* | Fix to some operators in shaders are not compiled properlyYuri Rubinsky2023-03-261-1/+1
| |
* | Avoid inserting screen_texture compatibility code when using textureSizeclayjohn2023-02-101-2/+7
| |
* | Make screen texture and depth texture work in MultiviewBastiaan Olij2023-01-251-12/+33
|/
* Remove SCREEN_TEXTURE, DEPTH_TEXTURE, and NORMAL_ROUGHNESS_TEXTUREclayjohn2023-01-181-22/+19
| | | | in favour of texture hints
* Fix multiple issues that make the normal roughness texture unusableclayjohn2023-01-091-1/+18
|
* 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/+5
|
* Fix screen texture slightly darkerFabio Iotti2022-12-121-1/+1
|
* Mark shader built-ins as used when passed to functions as out parameter Yuri Rubinsky2022-11-151-3/+51
|
* Make code generation for shader boolean uniform instances easierYuri Rubinsky2022-10-311-4/+4
|
* Fix incorrect setup of boolean uniform instancesYuri Rubinsky2022-10-091-4/+4
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-3/+3
| | | | change warnings=all to use /W4.
* Fix global uniform crash at editor startupYuri Rubinsky2022-10-031-4/+4
|
* Merge pull request #64952 from Chaosus/vs_rename_uniform_to_paramRémi Verschelde2022-09-021-1/+1
|\
| * Rename `uniform` to `parameter` across the engineYuri Rubinsky2022-09-011-1/+1
| |
* | Implement Physical Light Units as an optional setting.clayjohn2022-08-311-1/+1
|/ | | | | | This allows light sources to be specified in physical light units in addition to the regular energy multiplier. In order to avoid loss of precision at high values, brightness values are premultiplied by an exposure normalization value. In support of Physical Light Units this PR also renames CameraEffects to CameraAttributes.
* Merge pull request #64167 from clayjohn/screen-texture-hintMax Hilbrunner2022-08-191-1/+42
|\ | | | | Add shader uniform hints for screen textures
| * Add shader uniform hints for screen textures so users can specify custom ↵clayjohn2022-08-091-1/+42
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #64310 from Chaosus/shader_texture_funcsYuri Rubinsky2022-08-121-0/+2
|\ \
| * | Add `textureQueryLod/Levels` functions to the shader languageYuri Rubinsky2022-08-121-0/+2
| |/
* / Add `textureProjGrad` function to the shader languageYuri Rubinsky2022-08-121-0/+1
|/
* Rename RenderingServer global shader uniform methods to be more explicitHugo Locurcio2022-07-281-8/+8
| | | | | The `global_shader_uniform` name is longer, but it makes it much easier to find the methods when searching in the class reference.
* Clean up Shader Preprocessorreduz2022-07-221-6/+64
| | | | | | | | | * 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.
* Refactor shader hintsYuri Rubinsky2022-05-311-0/+1
|
* Add a new HashSet templatereduz2022-05-201-2/+2
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Use range iterators for RBSet in most casesAaron Record2022-05-191-2/+2
|
* Replace most uses of Map by HashMapreduz2022-05-161-4/+4
| | | | | | | | | | | | * 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!
* SceneShader compilingclayjohn2022-05-111-3/+7
|
* SkyShaders workingclayjohn2022-05-111-5/+9
|
* Use Filament specular models and parametrizationclayjohn2022-02-221-144/+0
|
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-36/+0
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Merge pull request #57562 from AnilBK/string-add-containsRémi Verschelde2022-02-031-1/+1
|\ | | | | String: Add contains().
| * String: Add contains().Anilforextra2022-02-041-1/+1
| |
* | Allow multiple declarations in for loop in a shaderYuri Roubinsky2022-02-031-3/+6
|/
* Unify variable and array declarations in shadersYuri Roubinsky2022-01-181-57/+38
|
* Fix shader crashing when declaring matrix or array varyingsYuri Roubinsky2022-01-141-1/+20
|
* Optimize include files to improve `shader_language.h` compilation speedYuri Roubinsky2022-01-121-1/+2
|
* New OpenGL batching canvas rendererclayjohn2022-01-111-0/+1552