Page MenuHome

Principled BSDF material turns black in the viewport when Clearcoat is set to 1 and the Clearcoat Roughness is set to 0
Closed, ResolvedPublic

Description

System Information

Windows 7 SP1 (Fully Up-to-Date) with NVIDIA GTX 980 (Driver version: 387.92)

Blender Version

Broken: 2.79 5bd8ac9

Short description of error

When using the Principled BSDF and setting the Clearcoat to 1 and the Clearcoat Roughness to 0, the material turns black in the viewport (material shaded view).

Exact steps for others to reproduce the error

Add a Principled BSDF shader to any object, switch to the material shaded view in the viewport and set the Clearcoat to 1.0 and the Clearcoat Roughness to 0. It should turn black.

Please check the attached file.

Related Objects

Event Timeline

Sergey Sharybin (sergey) triaged this task as Confirmed, Medium priority.

@Brecht Van Lommel (brecht), think it's matter of clipping roughness. But not fully familiar with code to check how to make it match behavior of Cycles kernel. Mind having a look? :)

Fixed with a simple clamp. This code will be completely replaced in Blender 2.8 anyway.