summaryrefslogtreecommitdiffstats
path: root/servers/rendering/rasterizer_rd/shader_compiler_rd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* RenderingServer reorganizationreduz2020-12-041-1452/+0
|
* Implement signed distance fields for 2D shadersreduz2020-11-261-0/+5
|
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-1/+0
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Merge pull request #42949 from DavidSichma/shaderglobalsRémi Verschelde2020-10-221-7/+7
|\ | | | | Shader globals bugfixes
| * Shader globals bugfixesDavid Sichma2020-10-211-7/+7
| | | | | | | | | | - shader globals editor displays properties correctly - fixed some errors how globals were transferred
* | Fix textureSize & texelFetch shader compilation errorsYuri Roubinsky2020-10-211-0/+2
|/
* Re-Implement GPU particles on master.Juan Linietsky2020-09-021-0/+14
| | | | | -No new features yet -Unlike godot 3.x, sorting happens using GPU
* Added const qualifier support for function arguments in shadersYuri Roubinsky2020-07-011-0/+3
|
* Implemented global const array to shadersYuri Roubinsky2020-06-191-1/+28
|
* Fix shader's length() function parsing in expressionsYuri Roubinsky2020-06-031-3/+9
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-11/+19
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-65/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* New lightmapperJuan Linietsky2020-05-101-0/+5
| | | | | | | -Added LocalVector (needed it) -Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too) -Fixes and changes all around the place -Added library for 128 bits fixed point (required for Delaunay3D)
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-74/+148
| | | | Part of #33027.
* Merge pull request #37795 from Chaosus/shader_fix_const_order2Rémi Verschelde2020-04-291-7/+8
|\ | | | | Fix shader constant sorting
| * Fix shader constant sortingYuri Roubinsky2020-04-111-7/+8
| |
* | Implement global and per instance shader uniforms.Juan Linietsky2020-04-171-10/+139
|/ | | | | | | | Adds two keywords to shader language for uniforms: -'global' -'instance' This allows them to reference values outside the material.
* Replace NULL with nullptrlupoDharkael2020-04-021-8/+8
|
* Renaming of servers for coherency.Juan Linietsky2020-03-271-0/+1243
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.