Blender Git Loki

Git Commits -> Revision 63a40ed

Revision 63a40ed by Lukas Stockner (master)
June 9, 2020, 20:19 (GMT)
Cycles: Fix uniform cone sampling

This code is currently only used for the Glossy Toon BSDF, but it's a generic
building block that might be used for other things in the future.

To see why the current code does not give a uniform distribution, consider that
it chooses both angles uniformly, but the smaller the angle from the center of
the cone is, the smaller the differential solid angle is (similar to how
sampling disks by choosing radius and phi uniformly does not work).

Differential Revision: https://developer.blender.org/D7948

Commit Details:

Full Hash: 63a40ed422bc61e9cd952282a636c53a9d8f3fde
Parent Commit: d3f83d9
Lines Changed: +4, -3

1 Modified Path:

/intern/cycles/kernel/kernel_montecarlo.h (+4, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021