Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Stockner <lukas.stockner@freenet.de>2020-06-06 21:08:48 +0300
committerLukas Stockner <lukas.stockner@freenet.de>2020-06-09 23:19:15 +0300
commit63a40ed422bc61e9cd952282a636c53a9d8f3fde (patch)
treeaf57385fe3851343b642c06bf14896c76727d60b /source/blender/editors/transform/transform_convert_object.c
parentd3f83d9f95504ad02121228477681db6702e9e11 (diff)
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
Diffstat (limited to 'source/blender/editors/transform/transform_convert_object.c')
0 files changed, 0 insertions, 0 deletions