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

Texture storing one single constant of arbitrary type. This texture provides only a constant value. Input color usages are ignored. For color-related constants, consider using TConstantTristimulusTexture or TConstantSpectralTexture; otherwise, it is recommended to bake color-related side effects (e.g., color usages) into the constant. More...

#include <constant_textures.h>

Inheritance diagram for ph::TConstantTexture< OutputType >:
ph::TTexture< OutputType >

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from ph::TTexture< OutputType >
using Output = OutputType
 

Detailed Description

template<typename OutputType>
class ph::TConstantTexture< OutputType >

Texture storing one single constant of arbitrary type. This texture provides only a constant value. Input color usages are ignored. For color-related constants, consider using TConstantTristimulusTexture or TConstantSpectralTexture; otherwise, it is recommended to bake color-related side effects (e.g., color usages) into the constant.

Constructor & Destructor Documentation

◆ TConstantTexture()

template<typename OutputType >
ph::TConstantTexture< OutputType >::TConstantTexture ( OutputType value)
inlineexplicit

Member Function Documentation

◆ sample()

template<typename OutputType >
void ph::TConstantTexture< OutputType >::sample ( const SampleLocation & sampleLocation,
OutputType *const out_value ) const
inlineoverridevirtual

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