summaryrefslogtreecommitdiffstats
path: root/servers/rendering/rendering_server_canvas.h
Commit message (Collapse)AuthorAgeFilesLines
* RenderingServer reorganizationreduz2020-12-041-279/+0
|
* Restored antialiased lines by emulation using triangle stripsYuri Roubinsky2020-11-271-1/+1
|
* Implement signed distance fields for 2D shadersreduz2020-11-261-1/+4
|
* Implement DirectionalLight2Dreduz2020-11-041-5/+7
| | | | | | | Also separated Light2D in PointLight2D and DirectionalLight2D. Used PointLight2D because its more of a point, and it does not work the same as OmniLight (as shape depends on texture). Added a few utility methods to Rect2D I needed.
* Refactor pixel snapping.reduz2020-10-301-2/+3
| | | | | | | | | -Rename pixel_snap to snap_2d_to_vertices -Added snap_2d_to_transforms which is more useful Fixes #41814 Solves proposal https://github.com/godotengine/godot-proposals/issues/1666 Supersedes #35606, supersedes #41535, supersedes #41534
* Implement CanvasGroup and CanvasItem clippingreduz2020-10-281-0/+2
| | | | | | | | -Allows merging several 2D objects into a single draw operation -Use current node to clip children nodes -Further fixes to Vulkan barriers -Changed font texture generation to white, fixes dark eges when blurred -Other small misc fixes to backbuffer code.
* Refactored 2D shader and lighting systemreduz2020-10-241-19/+23
| | | | | | | | | | -Removed normal/specular properties from nodes -Create CanvasTexture, which can contain normal/specular channels -Refactored, optimized and simplified 2D shaders -Use atlas for light textures. -Use a shadow atlas for shadow textures. -Use both items aboves to make light rendering stateless (faster). -Reorganized uniform sets for more efficiency.
* Make YSort stableJohn Pennycook2020-09-271-1/+3
| | | | | | Keeps track of the order in which items are collected by _collect_ysort_children, and uses that order to break ties between items with similar Y positions.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-3/+6
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-8/+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.
* Replace NULL with nullptrlupoDharkael2020-04-021-1/+1
|
* More server renames for consistency after #37361Rémi Verschelde2020-03-281-1/+1
|
* Renaming of servers for coherency.Juan Linietsky2020-03-271-0/+270
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.