Page MenuHome

Principled BSDF: Fix specular color for black base color
ClosedPublic

Authored by Pascal Schön (VanCantus) on Feb 17 2021, 1:30 PM.

Details

Summary

Specular color is set to black instead of white inside the Principled BSDF when the base color is set to fully black. This is contradictory to the sample code of the Disney BRDF in BRDF Explorer (https://github.com/wdas/brdf/blob/main/src/brdfs/disney.brdf).

This patch aligns both implementations.

Diff Detail

Repository
rB Blender

Event Timeline

Pascal Schön (VanCantus) requested review of this revision.Feb 17 2021, 1:30 PM
Pascal Schön (VanCantus) created this revision.

Thanks! I'll fix the Eevee implementation as well in the commit.

This revision is now accepted and ready to land.Feb 22 2021, 6:33 PM