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

Wierd shadow using directional light #69566

Closed
TandersT opened this issue Dec 4, 2022 · 1 comment
Closed

Wierd shadow using directional light #69566

TandersT opened this issue Dec 4, 2022 · 1 comment

Comments

@TandersT
Copy link

TandersT commented Dec 4, 2022

Godot version

Godot Engine v4.0.beta7.mono.official.01ae26d31

System information

AMD Radeon RX 5700

Issue description

When updating from v4.0.beta3 to v4.0.beta7 the shadows produced by the directional light looks very funky. This was not the case before, hence something I believe to have been introduced in recent betas. I believe any use of shadow with directional light seem to cause this issue.

WierdShadow

Steps to reproduce

Create a directional light, enable shadow and have a mesh produce shadow on another mesh.

Minimal reproduction project

RenderIssues.zip

@Calinou
Copy link
Member

Calinou commented Dec 4, 2022

This is expected as a result of #68339. You need to tweak your directional shadow bias values accordingly. You'll need to increase Shadow > Bias and/or Shadow > Normal Bias, and find a value that resolves shadow acne without introducing too much peter-panning.

I suggest increasing Shadow Normal Bias to 2 for starters. See also #55757.

PS: You can probably decrease Directional Shadow Max Distance to improve shadow quality, since your camera can't see far away given its angle.

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2022
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