 |
 |
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
vlmaterial
NAME
vlmaterial - Set the material properties
of a given variable for the lighting model
SYNOPSIS
#include <parvox.h>
int vlmaterial(vlvariable *variable, int property,
float coef)
DESCRIPTION
vlmaterial()
specifies the material properties of a volume variable pointed by variable.
The property
could be one of VL_AMBIENT, VL_DIFFUSE, VL_SPECULAR, and VL_SHINENESS.
When property
is VL_AMBIENT, coef
specifies the ambient intensity reflectance of the material. When property
is VL_DIFFUSE, coef specifies
the diffulse intensity reflectance of the material. When property
is VL_SPECULAR, coef
specifies the specular intensity reflectance of the material. In
all the above three cases, coef
is in the range of 0.0 to 1.0. When property
is VL_SHINENESS, coef specifies
the specular exponent of the material. The default values for VL_AMBIENT,
VL_DIFFUSE, VL_SPECULAR, and VL_SHINENESS are 0.3, 0.8, 0.5 and 0.35, respectively.
The material properties are used to shade the iso-surfaces for
iso-surface rendering. Each isosurface has its own color which is
defined by vlpick_iso_color.
SEE ALSO
vllight,
vliso_shade , vlgradient_shade,
vlpick_iso_color
BACK TO INDEX
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
 |
|
 |
This page,
http://pat.jpl.nasa.gov/public/ParVox/API/vlmaterial.html,
is maintained by
and was last modified Wednesday, 09-Mar-2005 16:44:03 PST
|
|
 |
 |
 |
 |
 |
 |
 |
|