CGPdocs

texture_settings_parameters

Texture options of a material (use the texture, flip v, two-sided lighting).

Fields and methods

Members of the struct texture_settings_parameters. Most of what you do with a CGP type goes through the free functions listed below.

Fields

bool active = trueUses the texture of the drawable when true (default); when false the default shader replaces the texture color by white; sent to material.texture_settings.use_texture.
bool inverse_v = trueReads the texture at (u, 1-v) when true (default), so that images stored from the top row appear upright; sent to material.texture_settings.texture_inverse_v.
bool two_sided = falseFlips the normal of the back faces in the default shader when true (false by default), so that both sides of a surface are lit; sent to material.texture_settings.two_sided.

Functions taking a texture_settings_parameters

None.

Functions returning a texture_settings_parameters

None.

Operators

None.

CGP - Computer Graphics Programming.