[ Maverik Level 1 functions ]

#

mav_paletteMaterialSet

## Summary

Define a material entry in a palette.

## Syntax

void mav_paletteMaterialSet(MAV_palette *p, int index, float ar, float ag, float ab, float aa, float dr, float dg, float db, float da, float sr, float sg, float sb, float sa, float er, float eg, float eb, float ea, float shin);

- MAV_palette *p
  Palette to set.

- int index
  Index of materials to define, in range 0..`mav_opt_maxMaterials` (default 150).

- float ar, ag, ab, aa
  Ambient R, G, B, A (0.0-1.0).

- float dr, dg, db, da
  Diffuse R, G, B, A (0.0-1.0).

- float sr, sg, sb, sa
  Specular R, G, B, A (0.0-1.0).

- float er, eg, eb, ea
  Emissive R, G, B, A (0.0-1.0).

- float shin
  Shininess (specular Phong exponent) (0.0-128.0)

## Description

This function defines material entry `index` of palette `p` as specified by the various values described above.

## See also

mav_paletteColourSet.html>mav_paletteColourSet, mav_paletteTextureSet.html>mav_paletteTextureSet

Back to the index page.