eradiate.test_tools.plugin.sample_eval_pdf_bsdf#
- eradiate.test_tools.plugin.sample_eval_pdf_bsdf(plugin, wi, sample_count=100000, seed=0)[source]#
Sample a BSDF and get corresponding
eval()
andpdf()
values.- Parameters:
plugin (
mitsuba.BSDF
) – A BSDF plugin to be evaluated.wi (
mitsuba.ScalarVector3f
) – An incoming direction.sample_count (
int
, optional, default:100000
) – The number of samples to generate.seed (
int
, optional, default:0
) – RNG seed to be used.
- Returns:
sample
– The result of a call to the plugin’ssample()
method.eval
– The result of a call to the plugin’seval()
method.pdf
– The result of a call to the plugin’spdf()
method.
Warning
This function requires a JIT active variant (e.g.
llvm_ad_rgb
).