Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: DirectionalLight3D or SpotLight3D with Shadow Blur set to 0.0 exhibits acne, even at default bias #69866

Open
Calinou opened this issue Dec 10, 2022 · 0 comments

Comments

@Calinou
Copy link
Member

Calinou commented Dec 10, 2022

Godot version

4.0.beta7

System information

Fedora 36, Vulkan Forward Plus, AMD Radeon RX 6900 XT

Issue description

DirectionalLight3D or SpotLight3D with Shadow Blur set to 0.0 exhibits acne, even at default bias. This doesn't seem to affect OmniLight3D, even if its bias is manually decreased to 0.03 (same value as SpotLight3D).

This may be a regression from #68339. cc @clayjohn
This may be fixable by not decreasing bias below a certain blur value (such as 0.1 or even 0.5).

I can reproduce this in both Forward Plus and Forward Mobile rendering methods.

Shadow Blur = 0.1 Shadow Blur = 0.0
2022-12-10_19 40 48 2022-12-10_19 40 39
2022-12-10_19 41 29 2022-12-10_19 41 24

Steps to reproduce

  • Add a DirectionalLight3D or Spotlight3D node with shadows enabled.
  • Set Shadow Blur to 0.0.

Minimal reproduction project

test_shadow_bias_blur.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants