Cycles: Use high value for Transparent BSDF PDF

The transparent BSDF is singular, so MIS shouldn't be applied.

Fixes #117657.
This commit is contained in:
Lukas Stockner 2024-02-04 00:07:53 +01:00
parent 4b108959ba
commit 8d7ecd0856
1 changed files with 3 additions and 2 deletions

View File

@ -76,8 +76,9 @@ ccl_device int bsdf_transparent_sample(ccl_private const ShaderClosure *sc,
{
// only one direction is possible
*wo = -wi;
*pdf = 1;
*eval = one_spectrum();
/* Some high number for MIS. */
*pdf = 1e6f;
*eval = one_spectrum() * 1e6f;
return LABEL_TRANSMIT | LABEL_TRANSPARENT;
}