Lighting
Inherits from: Effect
Overview
An effect that simulates a light source shining on the given content, which can be used to give flat objects a more realistic, three-dimensional appearance.
Profile: common
Variable Summary
| name | type | Default Value | description |
|---|---|---|---|
| light | Light |
The light source for this
| |
| bumpInput | Effect |
The optional bump map input. If not specified, a bump map will be automatically generated from the default input. If set to
| |
| contentInput | Effect | null |
The content input for this
|
| diffuseConstant | Number | 1.0 |
The diffuse constant.
Min: 0.0
Max: 2.0
Default: 1.0
Identity: n/a
|
| specularConstant | Number | 0.3 |
The specular constant.
Min: 0.0
Max: 2.0
Default: 0.3
Identity: n/a
|
| specularExponent | Number | 20.0 |
The specular exponent.
Min: 0.0
Max: 40.0
Default: 20.0
Identity: n/a
|
| surfaceScale | Number | 1.5 |
The surface scale factor.
Min: 0.0
Max: 10.0
Default: 1.5
Identity: n/a
|
