summaryrefslogtreecommitdiff
path: root/servers
AgeCommit message (Collapse)Author
2022-04-01Merge pull request #59774 from Chaosus/shader_fixYuri Rubinsky
2022-04-01Merge pull request #59792 from ↵Rémi Verschelde
Pineapple/audio-channels-count-change-crash-fix-master
2022-04-01Fix crash in AudioServer when switching audio devices with different audio ↵Bartłomiej T. Listwon
channels count (connecting PS5 controller, bluetooth 5.1 headphones etc.)
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-28Remove last editor code dependencies in template buildRémi Verschelde
SConstruct change also makes it possible to outright delete the `editor` folder in a `tools=no` build, which we use in CI to ensure no invalid cross-dependencies are added.
2022-03-28Merge pull request #59553 from reduz/script-extension-supportRémi Verschelde
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-27Rename warp mouse functions to warp_mouseMarkus Sauermann
2022-03-25Fix shader undefined variablenevarek
2022-03-23Add protective checks for invalid handle use in BVHlawnjelly
Adds DEV_ASSERTS that will halt at runtime if the BVH is misused with invalid IDs, and adds ERR_FAIL macros to prevent calling with invalid IDs. Any such misuse is a bug in the physics, but this should flag any errors quickly.
2022-03-22[macOS] Add missing global menu features.bruvzg
2022-03-21Extract Decal and Decal atlas from Storage classBastiaan Olij
2022-03-20Merge pull request #59345 from BastiaanOlij/call_correct_texture_freeRémi Verschelde
Call the correct texture free method on texture storage cleanup
2022-03-20Merge pull request #59346 from rburing/raycast_from_inside_globalRémi Verschelde
Raycasts hitting from inside: return collision point in global coordinates
2022-03-20Raycasts hitting from inside: return collision point in global coordinatesRicardo Buring
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-18Merge pull request #59268 from Chaosus/shader_renames2Rémi Verschelde
Rename several transform built-ins in shaders
2022-03-18Merge pull request #58233 from bruvzg/gde_tsRémi Verschelde
2022-03-18Rename several transform built-ins in shadersYuri Roubinsky
2022-03-18Merge pull request #49738 from Calinou/ssao-gi-default-half-resolutionRémi Verschelde
Compute SSAO at half resolution by default
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-17Merge pull request #59062 from BastiaanOlij/storagerd_textureRémi Verschelde
2022-03-17Unify TextServer built-in module and GDExtension code.bruvzg
2022-03-16Merge pull request #59209 from rburing/fix_pinjoint2d_inertia_tensorRémi Verschelde
`PinJoint2D`: fix inertia tensor, taking center of mass into account
2022-03-16PinJoint2D: fix inertia tensor, taking center of mass into accountRicardo Buring
2022-03-16Cleanup and fix native struct definitions.bruvzg
2022-03-16Merge pull request #59140 from reduz/physics-server-extensionRémi Verschelde
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-15Create GDExtension clases for PhysicsServer3Dreduz
* Allows creating a GDExtension based 3D Physics Server (for Bullet, PhysX, etc. support) * Some changes on native struct binding for PhysicsServer This allows a 3D Physics server created entirely from GDExtension. Once it works, the idea is to port the 2D one to it.
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 #59107 from otonashixav/expose-add-animation-sliceRémi Verschelde
2022-03-13Fix text clipping on the right side.bruvzg
2022-03-13Expose `RenderingServer::canvas_item_add_animation_slice` in GDScriptXavier Loh
2022-03-13Merge pull request #58819 from vreon/fix-eyedir-zRémi Verschelde
Fix flipped EYEDIR.z in sky shaders