summaryrefslogtreecommitdiff
path: root/servers/rendering
AgeCommit message (Collapse)Author
2022-04-17Merge canvas and decal into TextureStorage and add render targetBastiaan Olij
2022-04-13Merge pull request #60213 from JFonS/fix_depth_stateRémi Verschelde
2022-04-13Fix regression in rasterizer stateJoan Fons
Fixes a regression introduced by the color pass flags rework. The various rasterizer state structs were not being reset for each flag combination, which meant some state changes were wrongly applied to some flag combinations.
2022-04-13Color: Rename `to_srgb`/`to_linear` to include base color spaceRémi Verschelde
This helps reduce confusion around sRGB <> Linear conversions by making both input and output color spaces explicit.
2022-04-12Merge pull request #60171 from Chaosus/restore_aaYuri Rubinsky
2022-04-12Merge pull request #60069 from Calinou/fsr-fix-editor-enumRémi Verschelde
2022-04-12Merge pull request #59825 from Chaosus/shader_fixRémi Verschelde
Fix incorrect parsing array's `length()` at return statement in shader
2022-04-12Restore antialiasing for `draw_line`Yuri Roubinsky
2022-04-11Use less blur for distant directional shadow splitsHugo Locurcio
This makes the transition between shadow splits less noticeable, specially when the expensive Blend Splits property is disabled.
2022-04-11Merge pull request #60137 from JFonS/fix_default_shadow_texRémi Verschelde
Fix Vulkan validation errors on default depth textures
2022-04-11Merge pull request #57899 from Chaosus/fix_aaYuri Rubinsky
2022-04-11Merge pull request #60138 from JFonS/fix_spec_constantsRémi Verschelde
2022-04-11Fix specialization constant updates in color passesjfons
The color pass specialization constants were not being updated after splitting them to their own array.
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-11Fix Vulkan validation errors on default depth texturesjfons
The validation layers were complaining that we use DEFAULT_RD_TEXTURE_WHITE (which is RGBA8) in places where it's sampled as a depth texture. This commit adds the new default texture DEFAULT_RD_TEXTURE_DEPTH and uses it where needed.
2022-04-09Fix 3D scaling enum size in the editor and improve descriptionsHugo Locurcio
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-04-04Zero initialize all pointer class and struct membersRémi Verschelde
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
2022-04-03Fix incorrect parsing array's `length()` at return statement in shaderYuri Roubinsky
2022-04-02Move storage for Mesh, MeshInstance, MultiMesh and Skeleton into MeshStorageBastiaan Olij
2022-04-01Merge pull request #59774 from Chaosus/shader_fixYuri Rubinsky
2022-04-01Add color pass flags to Forward Clustered rendererjfons
This commit removes a lot of enum values related to the color render pass in favor of a new flag-bases approach. This means instead of hard-coding all the possible option combinations into enums, we can write our logic by checking a bit-mask. The changes in rendering_device_vulkan.cpp add support for unused attachments. That means RenderingDeviceVulkan::framebuffer_create() can take null RIDs in the attachments vector, which will result in VK_ATTACHMENT_UNUSED entries in the render pass. This is used in this same PR to establish fixed locations for the color pass attachments (only color and separate specular so far, but TAA will add motion vectors as well). This way the attachment locations in the shader can stay the same regardless of which attachments are actually used. Right now all the combinations of flags are generated, but we will need to add a way to limit the amount of combinations in the future.
2022-04-01Fix shader crashing when attempting to access `length()` at global spaceYuri Roubinsky
2022-03-31Merge pull request #59385 from BastiaanOlij/extract_shader_storageRémi Verschelde
2022-03-31Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
2022-03-31Extract global variable, shader and material storageBastiaan Olij
2022-03-29Fix canvas_group not being freed in RendererCanvasCull::freeDimitris Nikolaidis
2022-03-29Remove `SHADOW_ATTENUATION` spatial light shader built-inYuri Roubinsky
2022-03-27Add GDExtension support to Scriptreduz
* Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
2022-03-25Fix shader undefined variablenevarek
2022-03-21Extract Decal and Decal atlas from Storage classBastiaan Olij
2022-03-20Call the correct texture free method on texture storage cleanupBastiaan Olij
2022-03-18Add inverse projection matrix to fragment shader globalsnevarek
2022-03-18Rename several transform built-ins in shadersYuri Roubinsky
2022-03-18Merge pull request #59087 from clayjohn/sky-modeRémi Verschelde
Replace DirectionalLight3D's `use_in_sky_only` with `sky_mode` enum
2022-03-17Merge pull request #58954 from Ansraer/alpha_scissorRémi Verschelde
[4.0] Fix alpha scissor support
2022-03-17Replace DirectionalLight3D's `use_in_sky_only` with `sky_mode` enumHugo Locurcio
3 options are available: - Light and Sky (default) - Light Only (new) - Sky Only (equivalent to `use_in_sky_only = true`) Co-authored by: clayjohn <claynjohn@gmail.com>
2022-03-17Another `-Wsign-compare` fixRémi Verschelde
Fixing CI while afk, fun.
2022-03-17Fix `-Wsign-compare` warning after #58993Rémi Verschelde
2022-03-17Merge pull request #58993 from notSanil/device-limit-exceeded-fixRémi Verschelde
2022-03-17Fix alpha scissor supportAnsraer
2022-03-16Fix device limit exceeding for uniform buffernotSanil
2022-03-16Split dummy renderer classes into separate filesBastiaan Olij
Split canvas_texture_storage and texture_storage from render_storage class
2022-03-16Merge pull request #49092 from BastiaanOlij/multiview_clusteredRémi Verschelde
Add multiview support to the clustered forward renderer
2022-03-15Merge pull request #45263 from KoBeWi/😕Rémi Verschelde
2022-03-14Fix D_GGX code which can cause divide-by-zero valsnowapril
When given roughness is lower than 0.01, d value in original code will be zero. This can make last return value as NAN because of divide-by-zero. This is well addressed in issue #56373. Modified code is referenced on D_GGX function of google/filament (https://github.com/google/filament/blob/main/shaders/src/brdf.fs#L54-L79) Signed-off-by: snowapril <sinjihng@gmail.com>
2022-03-13Merge pull request #58819 from vreon/fix-eyedir-zRémi Verschelde
Fix flipped EYEDIR.z in sky shaders
2022-03-09Change some math macros to constexprkobewi
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
2022-03-08Sky renderer: Only flip Z when calculating panorama_coordsJesse Dubay
2022-03-08Merge pull request #49447 from Calinou/remove-shadow-color-propertyRémi Verschelde
Remove unused `shadow_color` property from Light3D