Photon Engine 2.0.0-beta
A physically based renderer.
|
Texture representing checker patterns. More...
#include <TCheckerboardTexture.h>
Public Member Functions | |
TCheckerboardTexture (real numUtiles, real numVtiles, const OutputType &oddValue, const OutputType &evenValue) | |
TCheckerboardTexture (real numUtiles, real numVtiles, const std::shared_ptr< TTexture< OutputType > > &oddTexture, const std::shared_ptr< TTexture< OutputType > > &evenTexture) | |
void | sample (const SampleLocation &sampleLocation, OutputType *out_value) const override |
void | setOddTexture (const std::shared_ptr< TTexture< OutputType > > &oddTexture) |
Sets the texture that is going to be used in odd cells. | |
void | setEvenTexture (const std::shared_ptr< TTexture< OutputType > > &evenTexture) |
Sets the texture that is going to be used in even cells. | |
void | setOddTextureScale (const math::Vector3R &sale) |
Sets the scale factors of cell texture. Larger u-, v- and w-scale makes texture appears to be larger in the corresponding direction, and vice versa. | |
void | setEvenTextureScale (const math::Vector3R &scale) |
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 |
Texture representing checker patterns.
A texture that is able to represent two inner textures alternately, producing pattern similar to a chessboard. We name the cells in the checkerboard in the following manner:
v +--—+--—+--—+ | even| odd| even| +--—+--—+--—+ | odd| even| odd| +--—+--—+--—+ | even| odd| even| +--—+--—+--—+ u
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ph::TTexture< OutputType >.
|
inline |
Sets the texture that is going to be used in even cells.
|
inline |
|
inline |
Sets the texture that is going to be used in odd cells.
|
inline |
Sets the scale factors of cell texture. Larger u-, v- and w-scale makes texture appears to be larger in the corresponding direction, and vice versa.