HyperWorks Desktop

*Ambient()

Specifies the red, green, and blue values for the ambient light component of a material.

*Ambient()

Specifies the red, green, and blue values for the ambient light component of a material.

Previous topic Next topic No expanding text in this topic  

*Ambient()

Specifies the red, green, and blue values for the ambient light component of a material.

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

Syntax

*Ambient(Red, Green, Blue)

Arguments

Name

Description

 

Red

A value from 0 to 1:

0 = no ambient light
1 = highest intensity

 

Green

A value from 0 to 1:

0 = no ambient light
1 = highest intensity

 

Blue

A value from 0 to 1:

0 = no ambient light
1 = highest intensity

Example

*BeginPalette()

 *BeginMaterial()

         *Name("blue green")

         *Emission(0, 0, 0)

         *Ambient(0, 0.46118, 0.6)

         *Diffuse(0, 0.76863, 1)

         *Specular(0, 0, 0)

         *Shininess(0)

         *Alpha(1)

 *EndMaterial()

*EndPalette()

Application

MotionView and HyperView.

Context

*BeginMaterial()

*BeginPalette()

Preference Files

See also

 

*Alpha()

*BeginMaterial()

*BeginPalette()

*Diffuse()

*Emission()

*Name()

*Shininess()

*Specular()

List of Session Statements