Skip to content
Discussion options

You must be logged in to vote

Hi @xacond00

The prev_bsdf_delta variable is initialized to true, so the entire em_pdf = scene->pdf_emitter_direction(ls.prev_si, ds, !ls.prev_bsdf_delta); computation is masked (the second argument of pdf_emitter_direction is a mask to indicate which lanes/threads are active). Effectively this means that em_pdf is equal to 0 and doesn't depend on the cosine term you mentioned.

Note that prev_bsdf_pdf is initialized as 1, so the mis_bsdf is equal to 1 even though em_pdf is 0.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xacond00
Comment options

Answer selected by xacond00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants