*setspecularity
Set the global specular highlight values.
Syntax
*setspecularity red green blue shininess
Type
HyperMesh Tcl Modify
Description
Set the global specular highlight values.
Inputs
- red
- The red component of the reflected light (range 0.0 – 1.0)
- green
- The green component of the reflected light (range 0.0 – 1.0)
- blue
- The blue component of the reflected light (range 0.0 – 1.0)
- shininess
- The shininess value. The higher the value, the smaller and brighter the highlight (range 0 – 128).
Example
This command may be used in either the hm.cfg file, or from a command file.
Specular reflection from an object produces highlights. The amount of specular reflection seen depends on the location of the viewpoint. It is brightest along direct angle of reflection.
Settings may be used to simulate different materials:
Glass *setspecularity(1.0,1.0,1.0,128)
Plastic *setspecularity(0.7,0.7,0.7,64)
Lead *setspecularity(0.5,0.5,0.5,32)
Errors
None.