summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace most uses of Map by HashMapreduz2022-05-161-3/+3
| | | | | | | | | | | | * 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!
* Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde2022-05-031-41/+41
|\ | | | | Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
| * Rename Basis "elements" to "rows"Aaron Franke2022-04-291-9/+9
| |
| * Rename Transform2D "elements" to "columns"Aaron Franke2022-04-291-32/+32
| |
* | Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-6/+0
|/ | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde2022-04-271-4/+4
|\
| * Fix more issues found by cppcheck.bruvzg2022-04-201-4/+4
| |
* | Fix clearing backbuffer if there are no itemsNNesh2022-04-251-3/+13
|/
* Moved particles into ParticlesStorageBastiaan Olij2022-04-171-22/+25
|
* Merge canvas and decal into TextureStorage and add render targetBastiaan Olij2022-04-171-37/+43
|
* Fix some issues found by cppcheck.bruvzg2022-04-061-6/+6
|
* Move storage for Mesh, MeshInstance, MultiMesh and Skeleton into MeshStorageBastiaan Olij2022-04-021-22/+26
|
* Extract global variable, shader and material storageBastiaan Olij2022-03-311-37/+44
|
* Extract Decal and Decal atlas from Storage classBastiaan Olij2022-03-211-4/+7
|
* Rename several transform built-ins in shadersYuri Roubinsky2022-03-181-1/+1
|
* Merge pull request #58993 from notSanil/device-limit-exceeded-fixRémi Verschelde2022-03-171-1/+1
|\
| * Fix device limit exceeding for uniform buffernotSanil2022-03-161-1/+1
| |
* | Split dummy renderer classes into separate filesBastiaan Olij2022-03-161-5/+7
| | | | | | | | Split canvas_texture_storage and texture_storage from render_storage class
* | Change some math macros to constexprkobewi2022-03-091-2/+2
|/ | | | Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
* Add a UniformSet cachereduz2022-03-061-14/+15
| | | | | | | * Changed syntax usage for RD::Uniform to create faster with a single RID * Converted render pass setup to use this in clustered renderer to test. This is the first step into creating a proper uniform set cache system to simplify large parts of the codebase.
* Merge pull request #54489 from briansemrau/texture-delete-updateRémi Verschelde2022-01-191-9/+0
|\
| * Fix materials not updating when texture replaced/deletedBrian Semrau2021-11-011-9/+0
| |
* | New OpenGL batching canvas rendererclayjohn2022-01-111-7/+7
| |
* | Fix incorrect format and buffer used for bone weights.bruvzg2022-01-051-1/+1
| |
* | Merge pull request #54791 from NHodgesVFX/masterRémi Verschelde2022-01-041-0/+2
|\ \ | | | | | | [4.x] add more OpenGL attributes
| * | add more OpenGL attributesNHodgesVFX2021-11-081-0/+2
| |/
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* | Fix multimesh still drawing when visible instances is zeroBrian Semrau2021-11-121-0/+4
| |
* | Fix default_texture_param in shader pipeline to support uniform arraysYuri Roubinsky2021-11-121-3/+12
|/
* clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-281-3/+1
| | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* Added support for uniform arrays in shadersYuri Roubinsky2021-10-041-2/+2
|
* Use range iterators for `Map`Lightning_A2021-09-301-14/+14
|
* Rename RID's `getornull()` to `get_or_null()`Hugo Locurcio2021-09-291-12/+12
|
* Fix editor freeze when asigning Skeleton2D to Polygon2DHendrik Brucker2021-09-291-0/+1
|
* Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra2021-09-211-1/+1
|
* Merge pull request #51604 from TechnoPorg/fix-vulkan-parent-materialJFonS2021-09-121-4/+6
|\ | | | | Vulkan: Fix CanvasItem::use_parent_material
| * Vulkan: Fix CanvasItem::use_parent_materialTechnoPorg2021-08-171-4/+6
| | | | | | | | | | The "Use Parent Material" option now does something when enabled on a CanvasItem. As before, it's not just limited to a node's direct parent but can move up the tree until it finds a material. Also corrected a typo in rendering_device_vulkan.h that didn't merit its own commit.
* | Merge pull request #51873 from Chaosus/fix_uniform_error_spamClay John2021-08-311-1/+1
|\ \ | | | | | | Fix incorrect checking of uniform set to prevent error spam (2)
| * | Fix incorrect checking of uniform set to prevent error spam (2)Yuri Roubinsky2021-08-191-1/+1
| |/
* | Makes FontData importable resource.bruvzg2021-08-271-0/+8
| | | | | | | | | | | | | | Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
* | Add comments at the top of each built-in shader to ease debuggingHugo Locurcio2021-08-181-0/+2
|/ | | | | | When a shader error is printed about a built-in shader, the origin of the shader will now be recognizable immediately by looking at the top of the printed shader code.
* Makes a clear error message if shader compilation failedYuri Roubinsky2021-08-161-2/+1
|
* Fix Gradient, Color Picker BG, Fix CanvasItem::draw_texture_rect p_tileNathan Franke2021-08-071-0/+4
|
* Fix incorrect checking of uniform set to prevent error spamYuri Roubinsky2021-08-061-1/+2
|
* Fix various typos with codespellluz paz2021-07-251-1/+1
| | | | Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
* Use C++11 raw literals for shader code to improve readabilityHugo Locurcio2021-07-191-1/+12
| | | | | In files that have lots of branching, `\t` was replaced with a tab character instead.
* Fix material invalidation on reimport.reduz2021-07-071-3/+1
| | | | | | * IF a texture was reimported (calling replace as an example), it would invalidate all materials using it, causing plenty of errors. * Added the possibility to get a notification when a uniform set is erased. * With this notification, materials can be queued for update properly.
* Unify material parameter updatereduz2021-07-061-80/+2
| | | | | | * Unifies how material parameters are updated. * Single function, easier to maintain. * Updates materials properly when textures change.
* Keep the drawing transform when drawing meshing in CanvasItemGilles Roudière2021-06-221-2/+3
|