*setspecularity()

Sets the global specular highlight values.

Syntax

*setspecularity(r,g,b,shininess)

Type

hm.cfg Commands

Description

Sets the global specular highlight values. 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.

Inputs

r,g,b
The red, green and blue components of the reflected light range (0.0-1.0).
shininess
The shininess value. Higher values indicate smaller and brighter highlights (0-128).

Example

To simulate glass:
*setspecularity(1.0,1.0,1.0,128)
To simulate plastic:
*setspecularity(0.7,0.7,0.7,64)
To simulate lead:
*setspecularity(0.5,0.5,0.5,32)