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

Common settings and operations for sampling a texture. More...

#include <TSampler.h>

Public Member Functions

 TSampler ()
 
 TSampler (const math::EColorUsage sampleUsage)
 
 TSampler (const math::EColorUsage sampleUsage, const uint32 sampledChannel)
 
OutputType sample (const TTexture< OutputType > &texture, const SurfaceHit &X) const
 
OutputType sample (const TTexture< OutputType > &texture, const math::Vector3R &uvw) const
 
OutputType sample (const TTexture< OutputType > &texture, const math::Vector2R &uv) const
 
OutputType sampleOrDefault (const TTexture< OutputType > *texture, const SurfaceHit &X, const OutputType &defaultValue) const
 

Detailed Description

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

Common settings and operations for sampling a texture.

Constructor & Destructor Documentation

◆ TSampler() [1/3]

template<typename OutputType >
ph::TSampler< OutputType >::TSampler ( )
inline

◆ TSampler() [2/3]

template<typename OutputType >
ph::TSampler< OutputType >::TSampler ( const math::EColorUsage sampleUsage)
inline

◆ TSampler() [3/3]

template<typename OutputType >
ph::TSampler< OutputType >::TSampler ( const math::EColorUsage sampleUsage,
const uint32 sampledChannel )
inline

Member Function Documentation

◆ sample() [1/3]

template<typename OutputType >
OutputType ph::TSampler< OutputType >::sample ( const TTexture< OutputType > & texture,
const math::Vector2R & uv ) const
inline

◆ sample() [2/3]

template<typename OutputType >
OutputType ph::TSampler< OutputType >::sample ( const TTexture< OutputType > & texture,
const math::Vector3R & uvw ) const
inline

◆ sample() [3/3]

template<typename OutputType >
OutputType ph::TSampler< OutputType >::sample ( const TTexture< OutputType > & texture,
const SurfaceHit & X ) const
inline

◆ sampleOrDefault()

template<typename OutputType >
OutputType ph::TSampler< OutputType >::sampleOrDefault ( const TTexture< OutputType > * texture,
const SurfaceHit & X,
const OutputType & defaultValue ) const
inline

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