Blender Git Commit Log

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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021