Brief Index      Full Index      I.M. Reference

Set_Explicit_Color


Functions

void Set_Explicit_Color (const char *type, const char *channel, const float *rgb, const char *texture, const char *options)

Function Documentation

void Set_Explicit_Color ( const char *  type,
const char *  channel,
const float *  rgb,
const char *  texture,
const char *  options 
)

Allows the specific channel, RGB, and texture components of a color definition to be set separately.

Parameters:
type - The types of geometric primitives to be colored. Legal values include all the primitives supported by Set_Color().
channel - The channel to which the color should be applied.
rgb - The RGB component of the color setting.
texture - The texture component of the color setting. This must match an existing texture definition.
options - A string containing options. See below.

DETAILS

Channels vary depending on the geometry type, but legal values for channel can be one of:

  • diffuse color
  • diffuse texture[=x]: If there is more than one diffuse texture, then the specific diffuse texture is set by naming the channel, for example "diffuse texture=0".
  • diffuse[=x]: This option can refer to either texture or color. If specifying multiple diffuse textures, identify the specific the channel by specifying the number, for example "diffuse=1".
  • specular
  • bump
  • transmission
  • environment
  • mirror
Legal values for options include:

  • ignore color

    When this is set, the rgb component is ignored.

See also:
Set_Color, Define_Texture, Show_Explicit_Color

Main Index
Brief Index      Full Index      I.M. Functions