Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::TConstantSpectralTexture< COLOR_SPACE > Class Template Reference

A constant color texture that can adapt spectral values to spectrum. Converts spectral values to spectrum based on parameters obtained during rendering. More...

#include <constant_textures.h>

Inheritance diagram for ph::TConstantSpectralTexture< COLOR_SPACE >:
ph::TTexture< math::Spectrum >

Public Member Functions

 TConstantSpectralTexture (math::SpectralSampleValues value)
 
void sample (const SampleLocation &sampleLocation, math::Spectrum *const out_value) const override
 
- Public Member Functions inherited from ph::TTexture< math::Spectrum >
 TTexture ()=default
 
virtual ~TTexture ()=default
 

Additional Inherited Members

- Public Types inherited from ph::TTexture< math::Spectrum >
using Output
 

Detailed Description

template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Spectral>
class ph::TConstantSpectralTexture< COLOR_SPACE >

A constant color texture that can adapt spectral values to spectrum. Converts spectral values to spectrum based on parameters obtained during rendering.

Template Parameters
COLOR_SPACEThe color space this texture is in. Must be spectral.

Constructor & Destructor Documentation

◆ TConstantSpectralTexture()

template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Spectral>
ph::TConstantSpectralTexture< COLOR_SPACE >::TConstantSpectralTexture ( math::SpectralSampleValues value)
inlineexplicit

Member Function Documentation

◆ sample()

template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Spectral>
void ph::TConstantSpectralTexture< COLOR_SPACE >::sample ( const SampleLocation & sampleLocation,
math::Spectrum *const out_value ) const
inlineoverridevirtual

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