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:
parent
4b108959ba
commit
8d7ecd0856
|
@ -76,8 +76,9 @@ ccl_device int bsdf_transparent_sample(ccl_private const ShaderClosure *sc,
|
||||||
{
|
{
|
||||||
// only one direction is possible
|
// only one direction is possible
|
||||||
*wo = -wi;
|
*wo = -wi;
|
||||||
*pdf = 1;
|
/* Some high number for MIS. */
|
||||||
*eval = one_spectrum();
|
*pdf = 1e6f;
|
||||||
|
*eval = one_spectrum() * 1e6f;
|
||||||
return LABEL_TRANSMIT | LABEL_TRANSPARENT;
|
return LABEL_TRANSMIT | LABEL_TRANSPARENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue