new PIXI.lights.DirectionalLight (color, brightness, target) overrides
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
number |
<optional> |
0xFFFFFF |
The color of the light. |
brightness |
number |
<optional> |
1 |
The intensity of the light. |
target |
PIXI.DisplayObject | PIXI.Point |
<optional> |
The object in the scene to target. |
Extends
Methods
syncShader (renderer) void overrides
Sync shader
Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
Renderer |
Inherited Properties
From class PIXI.lights.Light
brightness number inherited
Brightness
color number inherited
The color of the lighting.
Falloff
lastLayer PIXI.layers.Layer inherited
Last layer
- Default Value:
- undefined
Light height
shaderName string | null inherited
Shader name
- Default Value:
- undefined
Use Viewport Quad