Conversation
41f0f74 to
a96540a
Compare
scene/3d/light_3d.cpp
Outdated
There was a problem hiding this comment.
You removed the defaults here and then never replaced them
|
That's closing A LOT of issues 😉 |
There was a problem hiding this comment.
Is this intentionally left out?
There was a problem hiding this comment.
ah yes, this is from a previous attempt to implement normal bias in this type of light which I wasn' t very convinced about. The one above works better.
5fc9e01 to
c3e7b44
Compare
- Made shadow bias size independent, so it will remain when changing light or camera size. - Implemented normal offset bias, which greatly enhances quality. - Added transmission to subsurface scattering - Reimplemented shadow filter modes Closes godotengine#17260
c3e7b44 to
4ffc0d6
Compare
Subgroups were added in godotengine#37678 but not properly handled everywhere where PROPERTY_USAGE_GROUP is.
|
How difficult is the backport of the code for 3.2? |
|
Is there a patchset or fork that brings these changes to 3.x? There's probably no way this would be in an official 3.x release since the changes to shadow/light properties would break compatibility, but it would be great if I could take advantage of the improved shadows now instead of Waiting For Godot 4.1. The shadows in 3.x are serviceable but could be a lot sharper and there isn't a way to avoid both artifacting and peterpanning. The shadows in 4 on the other hand are basically magic. |
Se #43207, which backports a fix from this pull request. While it's technically possible to backport the other features (at least under GLES3), it'd be too much work to backport for 3.6. Feel free to tackle this if you feel adventurous still, but it won't be easy 🙂
If you want sharper shadows, you have to increase their resolution or decrease Shadow Max Distance on a DirectionalLight. It works like that in 4.0 too. There isn't any other way around this, other than implementing godotengine/godot-proposals#3908. Directional shadows look a bit sharper out of the box on 4.0 due to #43207 (on aspect ratios wider than 1:1), but this is more of a side effect of that fix than an actual feature. Note that sharper shadows are not always better from an artistic point of view. Blurrier but more temporally stable shadows are often preferable in my experience, especially for moving objects. |
|
Shadows in 4.0 are definitely a bit sharper with the same settings versus 3.x (and a lot sharper with a wider aspect ratio). But the big thing for me is that with 3.x I can get simultaneous artifacting and peterpanning, whereas with 4.0 I can avoid both. This is with 4k textures in both. I know about the reverse culling option, but it adds artifacting to sharp corners, and for my visual style I don't want to subdivide everything. I want the graphics looking sharp and clean. |


Closes #17260
Bugsquad edit: closes godotengine/godot-proposals#262, fixes #34010, fixes #29690, fixes #23603, fixes #12148, fixes #13575, fixes #24587, fixes #11398