HyperWorks Desktop

*setspecularity()

*setspecularity()

Previous topic Next topic No expanding text in this topic  

*setspecularity()

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


*setspecularity - Sets the global specular highlight values.

 

SYNTAX


*setspecularity(r,g,b,shininess)

 

TYPE


hm.cfg Command

 

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.

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).

 

EXAMPLES


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)

 

ERRORS


None.

SEE ALSO


*overridesinglelight()

*setspecularity()

Configuration File Commands