Open Calinou opened 1 year ago
4.2.beta1
Fedora 38, GeForce RTX 4090 (NVIDIA 535.104.05)
When using the Compatibility rendering method, Clearcoat has no effect if BaseMaterial3D roughness is exactly 0:
However, it works if roughness is set to 0.01 or 1.0:
This issue only occurs in Compatibility, not Forward+ or Mobile. I noticed it while working on a solution for https://github.com/godotengine/godot/issues/69327.
0.0
Clearcoat_Test_2.zip
See: https://github.com/godotengine/godot/blob/51f81e1c88499f04d2ebdcc0be0b34e73f5e90eb/servers/rendering/renderer_rd/shaders/scene_forward_lights_inc.glsl#L187
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:
However, it works if roughness is set to 0.01 or 1.0:
This issue only occurs in Compatibility, not Forward+ or Mobile. I noticed it while working on a solution for https://github.com/godotengine/godot/issues/69327.
Steps to reproduce
0.0
and enable Clearcoat.Minimal reproduction project
Clearcoat_Test_2.zip