发布日期: 08/07/2020

Lighting Models

Lighting models are specified with the Light Model command.

Light Model( argument, value,...,value )

Light models specify three attributes of lights.

The global ambient light intensity

Whether the viewpoint is local or is an infinite distance away

Whether lighting calculations should be performed differently for the front and back faces of objects.

Light Arguments and Default Values shows the three valid arguments for the Light Model command.

Light Model Arguments and Default Values

Argument

Default Value

Meaning

LIGHT_MODEL_AMBIENT

(0.2, 0.2, 0.2, 1)

Ambient RGBA intensity of the entire scene

LIGHT_MODEL_LOCAL_VIEWER

0 (false)

how specular reflection angles are computed

LIGHT_MODEL_TWO_SIDE

0 (false)

nonzero values imply two-sided lighting

需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).