Facebook Twitter YouTube

class HorizonTextureAttribute

Defined in:  TSHorizon.h
The HorizonTextureAttribute class represents the material attribute for a horizon map.
Definition

class HorizonTextureAttribute final : public TextureAttribute

Constructor

explicit HorizonTextureAttribute(const char *name);

explicit HorizonTextureAttribute(Texture *texture);

HorizonTextureAttribute(const TextureHeader *header, const void *image = nullptr);

Parameters
name The name of the texture map to load.
texture The texture object to use.
header A texture header from which to construct a new texture object.
image A pointer to a texture image that is used if the texture header does not specify an offset to an image.
Description
The HorizonTextureAttribute class represents the material attribute for a horizon map. A specially-computed horizon map created by the Texture Tool is required for horizon mapping to work properly.

See the TextureAttribute class for a description of the differences among the various constructors.
Base Classes
TextureAttribute All attributes using a texture map are subclasses of TextureAttribute.