Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::RayleighSpectrum Class Reference

Spectral distribution for rendering participating media with Rayleigh scattering. More...

#include <mitsuba/core/spectrum.h>

+ Inheritance diagram for mitsuba::RayleighSpectrum:

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...
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
ESigmaS 

Compute the scattering coefficient.

ESigmaT 

Compute the extinction coefficient.

Constructor & Destructor Documentation

mitsuba::RayleighSpectrum::RayleighSpectrum ( EMode  mode,
Float  eta = 1.000277f,
Float  height = 0 
)

Create a Rayleigh spectrum instance.

Parameters
modeSpecifies the requested type of spectrum
etaRefractive index of the medium (e.g. air)
heightHeight above sea level (in meters)
virtual mitsuba::RayleighSpectrum::~RayleighSpectrum ( )
inlinevirtual

Member Function Documentation

virtual Float mitsuba::RayleighSpectrum::eval ( Float  lambda) const
virtual

Evaluate the extinction/scattering coefficient for a specified wavelength.

The returned value is in units of 1/meter.

Implements mitsuba::ContinuousSpectrum.

std::string mitsuba::RayleighSpectrum::toString ( ) const
virtual

Return a string representation.

Implements mitsuba::ContinuousSpectrum.


The documentation for this class was generated from the following file: