Accessing loop variables #525
Unanswered
DoreenMulder
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Could you share a snippet of your code? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Over the last few days I've tried to implement a Mie scattering phase function. The size parameter I need to calculate is wavelength-dependent, so I'm trying to get these wavelengths from the MediumInteraction that is passed to me in the eval(ctx, mi, wo, active) method.
I'm struggling with accessing the wavelengths this way, because DrJit says it's a placeholder variable and cannot be scheduled for evaluation. Can anyone point me in the right direction here?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions