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

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

#include <constant_textures.h>

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

Public Member Functions

 TConstantTristimulusTexture (math::TristimulusValues value)
 
 TConstantTristimulusTexture (math::ColorValue 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::Linear_sRGB>
class ph::TConstantTristimulusTexture< COLOR_SPACE >

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

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

Constructor & Destructor Documentation

◆ TConstantTristimulusTexture() [1/2]

template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Linear_sRGB>
ph::TConstantTristimulusTexture< COLOR_SPACE >::TConstantTristimulusTexture ( math::TristimulusValues value)
inlineexplicit

◆ TConstantTristimulusTexture() [2/2]

template<math::EColorSpace COLOR_SPACE = math::EColorSpace::Linear_sRGB>
ph::TConstantTristimulusTexture< COLOR_SPACE >::TConstantTristimulusTexture ( math::ColorValue value)
inlineexplicit

Member Function Documentation

◆ sample()

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

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