[][src]Module pbrt::textures::constant

Implements a Texture that always returns the given value.

Structs

ConstantTexture

Implements trait Texture to return the given value.

Functions

create_constant_float_texture

Creates new ConstantTexture from the given TextureParams with Float as the data type.

create_constant_spectrum_texture

Creates new ConstantTexture from the given TextureParams with Spectrum as the data type.