Disabling ClearCoat results in missing object within next Screenshot

The problem is that some defines are not reset to their default value when switching the clearcoat state (enable/disable).

Here’s a PR that will fix it:

I have also performed the same fix for the other PBR components (anisotropy, sheen, etc).

5 Likes