Commit Graph

4106 Commits

Author SHA1 Message Date
Pedro J. Estébanez 907b10fb96
Fix additional cases of breakage of rendering effects
(cherry picked from commit c58e50adcc)
2023-05-12 12:07:01 +02:00
clayjohn 2435c9426d
Use proper UV in cubemap downsampler raster
This removes bias in cubemap downsampling shader that resulted in the bottom of cubemaps being over represented

(cherry picked from commit fb77021559)
2023-05-12 12:07:01 +02:00
Pedro J. Estébanez 908325c29e
Fix unsupported sampler filter used for voxel GI
(cherry picked from commit 09aa1bbdb3)
2023-04-27 08:43:30 +02:00
Pedro J. Estébanez a5779ff281
Fix breakages of volumetric fog on voxel GI changes
(cherry picked from commit 2beed0d5dc)
2023-04-27 08:43:23 +02:00
bitsawer a0a95c7bc7
Fix Shader Preprocessor line numbering when disabled
(cherry picked from commit 34896d8e89)
2023-04-27 08:41:43 +02:00
Eoin O'Neill 5120afc236 Fix crash caused by invalid mix_rate assignment due to bogus
project settings.

We'll default to a sensible value in the case that a user has
somehow managed to modify the configuration file incorrectly.

Closes 69819

(cherry picked from commit 5a08091168)
2023-04-26 14:51:00 +02:00
kleonc 13cfbe6a25 Fix deserializing resource usage debug data
(cherry picked from commit 3e7752463a)
2023-04-24 17:03:57 +02:00
João Pedro Braz 1a85f6398f Use MODELVIEW_MATRIX for vertex transform when double precision is enabled
This commit updates the double precision vertex transform code from
using the MODEL_MATRIX to now use the MODELVIEW_MATRIX instead.

This can be made possible by transforming the MODELVIEW_MATRIX
back into model space (ie, same space as the MODEL_MATRIX) and then using it as if it were the MODEL_MATRIX.

With this in place we now properly handle VERTEX transformations that
a Material Shader might do, such as billboard-ing.

(cherry picked from commit 63c6f0b93c)
2023-04-24 16:52:24 +02:00
clayjohn ad582cf0b1 Don't store instance transform in RD 3D renderer unless requested
Previously, when using doubles builds of the engine, instance transform was stored no matter what which caused world space particles to accumulate the instance transform twice

(cherry picked from commit 29edd277e4)
2023-04-24 16:52:24 +02:00
Erik Johnson 410b503aac Translate inactive particles to -INF
(cherry picked from commit 6229c2a1f9)
2023-04-24 16:28:30 +02:00
clayjohn 27df8b93aa Properly calculate lifetime_split for particles
(cherry picked from commit f35ca4a9c7)
2023-04-24 16:28:28 +02:00
bruvzg e071fb2263 [TextServer] Use dedicated flag for object replacement characters.
(cherry picked from commit d904516e55)
2023-04-24 16:28:28 +02:00
Hugo Locurcio 9253f415b3 Fix `get_test_texture()` returning an almost fully white texture
The texture's appearance is now similar to the texture that was displayed
on the TestCube node in Godot 2.x.

(cherry picked from commit e4d5cecd4c)
2023-04-24 16:28:26 +02:00
Ricardo Buring deb22e2381 Fix typo bug in convex-convex separating axis test
(cherry picked from commit d7aed57b60)
2023-04-24 14:04:19 +02:00
mightygoat 66633d19a1 Fix the limit for interpolation of R0 with respect to metallic and SSR
Shlick term

(cherry picked from commit 2c000cb72f)
2023-04-07 17:44:40 +02:00
Malcolm Nixon 7c62d1106e Modify "physics/3d/solver/contact_max_allowed_penetration" precision to three significant digits, so values down to "0.001" can be specified.
Updated additional 2D and 3D physics parameters based on team recommendations

Co-Authored-By: Ricardo Buring <rburing@users.noreply.github.com>
(cherry picked from commit 1d1d3c71e0)
2023-04-07 17:44:39 +02:00
Ricardo Buring 58d8368481 Fix collide_shape return type
Fix PhysicsDirectSpaceState3D::_collide_shape return type.
Also PhysicsDirectSpaceState2D::_collide_shape.

(cherry picked from commit 61429a5f49)
2023-03-27 17:50:35 +02:00
Bastiaan Olij a94a2062af Add XRServer.world_origin property
(cherry picked from commit fd8f26f26e)
2023-03-27 16:56:22 +02:00
RandomCatDude 149f16b2fa fix spotlight shadows in volumetric fog
(cherry picked from commit 59c31004f8)
2023-03-27 16:47:46 +02:00
Ricardo Buring d8f0c2bdca Revert attempted fix of trimesh CCD
(cherry picked from commit bec1182093)
2023-03-27 16:22:22 +02:00
Mikael Hermansson 7ac80569b3 Fix extension bindings for motion collision/result structs
(cherry picked from commit be64ffd25d)
2023-03-14 13:59:04 +01:00
Johan Aires Rastén 4ff705b37e Fix instance uniforms breaking when setting a new mesh.
Fixes #58113

(cherry picked from commit 26aecbfe57)
2023-03-14 13:59:03 +01:00
SlugFiller d508d0a642 Fixes a canvas item set to clip children being drawn as black if no children are visible
(cherry picked from commit f25508befb)
2023-03-14 13:59:03 +01:00
SlugFiller 18bf2663f9 Fix AABB calculation for meshes using Skeleton2D
(cherry picked from commit 06a1fe0364)
2023-03-14 13:59:03 +01:00
Fabio Iotti 01324f025a Error on hint_normal_roughness_texture and hint_depth_texture outside of spatial shader
(cherry picked from commit 528e0d095e)
2023-03-13 21:51:36 +01:00
Bastiaan Olij c8f64c68a5 Use MSAA 2D texture in multipass tonemapper
(cherry picked from commit 903aa0e385)
2023-03-13 21:48:02 +01:00
clayjohn 925381201b Add a few more rendering timestamps
(cherry picked from commit 1adc4e5875)
2023-03-13 21:43:38 +01:00
clayjohn 5662542526 Avoid copying CanvasTexture when updating proxy
(cherry picked from commit 84482ef90b)
2023-03-13 14:10:38 +01:00
Rémi Verschelde 0cd1483132
Merge pull request #73959 from clayjohn/GL-mobile-warnings
Add warnings for unsupported features in mobile and gl_compatibility backends
2023-02-26 21:39:06 +01:00
clayjohn c69b14e96e Add warnings for unsupported features in mobile and gl_compatibility backends 2023-02-26 12:28:02 -08:00
bruvzg bbc77b6d29
Fix text server GDExtension build. 2023-02-26 18:38:22 +02:00
bitsawer 35c970f4f6 Fix shader preprocessor include resource check 2023-02-26 13:59:29 +02:00
Bastiaan Olij 4c2f33cfae Fixing issues with SSIL artifacts 2023-02-24 16:13:18 +11:00
Bastiaan Olij 467d735eb1 Fix issue with default textures requiring arrays when using multiview 2023-02-22 16:50:58 +11:00
Rémi Verschelde 1fc28fe31f
Merge pull request #73698 from clayjohn/SS-bias
Increase SSAO and SSIL bias to account for variance in mipmap generation
2023-02-21 21:16:07 +01:00
Rémi Verschelde 5e57205365
Merge pull request #73478 from NewDefectus/master
Use the original canvas to calculate light positioning
2023-02-21 21:14:51 +01:00
clayjohn db9dfb7233 Increase SSAO and SSIL bias to account for variance in mipmap generation 2023-02-21 10:25:33 -08:00
Alon Ran 2d7db30f0d Use the original canvas to calculate light positioning 2023-02-21 11:57:16 +02:00
Yuri Rubinsky 94831c7209 Forbid passing multiview sampler to the custom function in shaders 2023-02-21 11:23:17 +03:00
Rémi Verschelde 02e5da2cc5
Merge pull request #72917 from rburing/fix_trimesh_ccd
Fix CCD in case of multiple supports in motion direction
2023-02-20 15:40:56 +01:00
Rémi Verschelde 9583c20171
Merge pull request #70515 from stmSi/fix-hanging-audio-pitch-scale
Fix hanging if audiostream's pitch_scale is NaN
2023-02-17 14:06:55 +01:00
Rémi Verschelde b2584629c8
Merge pull request #73195 from timothyqiu/weblate-comments
Improvements and fixes based on Weblate comments
2023-02-17 09:55:39 +01:00
Rémi Verschelde 4a1913fc17
Merge pull request #68181 from MarianoGnu/fix-convex-hull-crash
Avoid memory corruption when GodotConvexPolygonShape3D is setup more than once
2023-02-17 00:33:47 +01:00
Rémi Verschelde eb1af0d95f
Merge pull request #73420 from clayjohn/SSAO-half-size
Fix sampling bug when SSAO is using half size
2023-02-17 00:32:32 +01:00
Rémi Verschelde 2d845ee3d1
Merge pull request #73437 from bruvzg/docs_ignore_import_v
Exclude platform dependent `rendering/textures/vram_compression/import_*` default values from documentation.
2023-02-16 18:34:44 +01:00
Rémi Verschelde 6b7c0a1f2a
Merge pull request #73250 from smix8/fix_navigation_debug_script_toggle_4.x
Fix navigation debug not toggleable in scripts
2023-02-16 18:32:39 +01:00
bruvzg 041f559da1
Exclude platform dependent `rendering/textures/vram_compression/import_*` default values from documentation. 2023-02-16 15:48:09 +02:00
smix8 aecad7bb25 Fix navigation debug not toggleable in scripts
Fixes that navigation debug was not toggleable in script while even the docs mentioned it.
2023-02-16 11:12:48 +01:00
clayjohn c9c14410e9 Fix sampling bug when SSAO is using half size 2023-02-16 00:37:12 -08:00
Rémi Verschelde 5b6c9c66a4
Android: Default Min SDK to 24 for Vulkan mobile
Users can still go down to 21 when using GL Compatibility.
This makes the default behavior match the default renderer, and thus avoids
a warning in the out of the box experience.

Also mark texture compression settings as basic, since out of the box users
who want to export to Android will need to enable ETC2/ASTC manually.
2023-02-15 14:32:54 +01:00