Spectral distribution for rendering participating media with Rayleigh scattering. More...
#include <mitsuba/core/spectrum.h>
Public Types | |
enum | EMode { ESigmaS, ESigmaT } |
Public Member Functions | |
RayleighSpectrum (EMode mode, Float eta=1.000277f, Float height=0) | |
Create a Rayleigh spectrum instance. More... | |
virtual | ~RayleighSpectrum () |
virtual Float | eval (Float lambda) const |
Evaluate the extinction/scattering coefficient for a specified wavelength. More... | |
std::string | toString () const |
Return a string representation. More... | |
Public Member Functions inherited from mitsuba::ContinuousSpectrum | |
virtual Float | average (Float lambdaMin, Float lambdaMax) const |
Integrate the spectral power distribution over a given interval and return the average value. More... | |
virtual | ~ContinuousSpectrum () |
Virtual destructor. More... | |
Spectral distribution for rendering participating media with Rayleigh scattering.
This distribution captures the 1/lambda^4 wavelength dependence of Rayleigh scattering. It can provide both the scattering and extinction coefficient needed for simulating planetary atmospheres with participating media.
Create a Rayleigh spectrum instance.
mode | Specifies the requested type of spectrum |
eta | Refractive index of the medium (e.g. air) |
height | Height above sea level (in meters) |
|
inlinevirtual |
Evaluate the extinction/scattering coefficient for a specified wavelength.
The returned value is in units of 1/meter.
Implements mitsuba::ContinuousSpectrum.
|
virtual |
Return a string representation.
Implements mitsuba::ContinuousSpectrum.