eradiate.scenes.phase.HenyeyGreensteinPhaseFunction
eradiate.scenes.phase.HenyeyGreensteinPhaseFunction#
- class eradiate.scenes.phase.HenyeyGreensteinPhaseFunction(id='phase', g=0.0)[source]#
Bases:
eradiate.scenes.phase._core.PhaseFunction
Henyey-Greenstein phase function [
hg
].The Henyey-Greenstein phase function [HG41] models scattering in an isotropic medium. The scattering pattern is controlled by its \(g\) parameter, which is equal to the phase function’s asymmetry parameter (the mean cosine of the scattering angle): a positive (resp. negative) value corresponds to predominant forward (resp. backward) scattering.
- Parameters
- Fields
- kernel_dict(ctx)[source]#
Return a dictionary suitable for kernel scene configuration.
- Parameters
ctx (
KernelDictContext
) – A context data structure containing parameters relevant for kernel dictionary generation.- Returns
KernelDict
– Kernel dictionary which can be loaded as a Mitsuba object.