Lighting
Configures the viewer's light sources.
TODO:
- This class's API will probably change as we add ability to configure multiple light sources.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
viewer: * |
|
| Private Members | ||
| private |
|
|
| private |
_buffer: * |
|
| private |
_bufferData: * |
|
| private |
_color: * |
|
| private |
_dir: * |
|
| private |
|
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
render(uniformBlockLocation: *) |
|
| public |
setAmbientColor(ambientColor: *) |
|
| public |
setColor(color: *) |
|
| public |
setDir(dir: *) |
|
| public |
setIntensity(intensity: *) |
|
| Private Methods | ||
| private |
|
|
| private |
_update() |
|
Public Constructors
public constructor() source
Public Members
public viewer: * source
Private Members
private _ambientColor: * source
private _buffer: * source
private _bufferData: * source
private _color: * source
private _dir: * source
Public Methods
public render(uniformBlockLocation: *) source
Params:
| Name | Type | Attribute | Description |
| uniformBlockLocation | * |
public setAmbientColor(ambientColor: *) source
Params:
| Name | Type | Attribute | Description |
| ambientColor | * |
public setColor(color: *) source
Params:
| Name | Type | Attribute | Description |
| color | * |
public setDir(dir: *) source
Params:
| Name | Type | Attribute | Description |
| dir | * |
public setIntensity(intensity: *) source
Params:
| Name | Type | Attribute | Description |
| intensity | * |
