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

BaseMaterial3D clearcoat rendering is broken with material roughness set to 0.0 in Forward+/Mobile #95207

Open
Calinou opened this issue Aug 6, 2024 · 0 comments

Comments

@Calinou
Copy link
Member

Calinou commented Aug 6, 2024

Tested versions

  • Reproducible in: 4.0.stable, 4.1.4.stable, 4.2.2.stable, 4.3.rc e343dbb

System information

Godot v4.3.rc (e343dbb) - Fedora Linux 40 (KDE Plasma) - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 4090 (nvidia; 555.58.02) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)

Issue description

Clearcoat rendering is broken with material roughness set to 0.0 in Forward+/Mobile. Specular lobes from all light types will regularly disappear in an artifact-like pattern. This does not occur with roughness set to 0.01 or greater.

The artifacts also look different in Forward+ compared to Mobile. They depend on viewport resolution and camera distance/rotation either way, as seen in the videos below:

Forward+

Roughness = 0.0 Roughness = 0.01
Screenshot_20240806_195606 png webp Screenshot_20240806_195618 png webp

The issue in action:

clearcoat_roughness_0_forward_plus.mp4

Mobile

Roughness = 0.0 Roughness = 0.01
Screenshot_20240806_195638 png webp Screenshot_20240806_195653 png webp

The issue in action:

clearcoat_roughness_0_mobile.mp4

Steps to reproduce

  • Create a MeshInstance3D with a SphereMesh. Add a StandardMaterial3D, set its Roughness to 0.0 and Metallic to 1.0. Enable Clearcoat.
  • Move around the camera in the 3D editor. Try resizing the 3D editor viewport as well.
  • At some point, specular lobes from the clearcoat will disappear.

Minimal reproduction project (MRP)

test_clearcoat_roughness_zero.zip

@Calinou Calinou changed the title Clearcoat rendering is broken with material roughness set to 0.0 in Forward+/Mobile BaseMaterial3D clearcoat rendering is broken with material roughness set to 0.0 in Forward+/Mobile Aug 6, 2024
@github-project-automation github-project-automation bot moved this to For team assessment in Rendering Issue Triage Aug 7, 2024
@clayjohn clayjohn moved this from For team assessment to Up for grabs in Rendering Issue Triage Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Up for grabs
Development

No branches or pull requests

1 participant