HyperWorks Desktop

*Diffuse()

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

*Diffuse()

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

Previous topic Next topic No expanding text in this topic  

*Diffuse()

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

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

Syntax

*Diffuse(Red, Green, Blue)

Arguments

Name

Description

 

Red

A value from 0 to 1; 0 is no diffuse light and 1 is the highest intensity.

 

Green

A value from 0 to 1; 0 is no diffuse light and 1 is the highest intensity.

 

Blue

A value from 0 to 1; 0 is no diffuse light and 1 is the 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

MBD Model and HyperView.

Context

*BeginMaterial()

*BeginPalette()

Preference Files

See also

 

*Alpha()

*Ambient()

*BeginMaterial()

*BeginPalette()

*Emission()

*Name()

*Shininess()

*Specular()

List of Session Statements