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

OpenGL: Clearcoat has no effect if BaseMaterial3D roughness is exactly 0 #83223

Open
Tracked by #66458
Calinou opened this issue Oct 12, 2023 · 1 comment
Open
Tracked by #66458

Comments

@Calinou
Copy link
Member

Calinou commented Oct 12, 2023

Godot version

4.2.beta1

System information

Fedora 38, GeForce RTX 4090 (NVIDIA 535.104.05)

Issue description

When using the Compatibility rendering method, Clearcoat has no effect if BaseMaterial3D roughness is exactly 0:

Screenshot_20231013_012642 webp

However, it works if roughness is set to 0.01 or 1.0:

Roughness 0.01 Roughness 1.0
Screenshot_20231013_012628 webp Screenshot_20231013_012638 webp

This issue only occurs in Compatibility, not Forward+ or Mobile. I noticed it while working on a solution for #69327.

Steps to reproduce

  • Add a MeshInstance3D and DirectionalLight3D (so that clearcoat can be seen).
  • Assign a BaseMaterial3D to the MeshInstance3D, with Roughness set to exactly 0.0 and enable Clearcoat.

Minimal reproduction project

Clearcoat_Test_2.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