Class TCastleDirectionalLight
Unit
CastleScene
Declaration
type TCastleDirectionalLight = class(TCastleAbstractLight)
Description
Directional light shines along a direction in 3D space, simulating a light source far away (like a sun). The direction is -Z (in local coordinates), simply rotate this transformation to change the lighting direction. The position of this transformation doesn't matter for lighting calculation (though it is useful to display the light gizmo at design-time).
See X3D DirectionalLight specification for various details.
Hierarchy
Overview
Methods
Properties
Description
Methods
|
constructor Create(AOwner: TComponent); override; |
|
|
destructor Destroy; override; |
|
Properties
|
property Color: TCastleColorRGB read FColor write SetColor; |
Light color shining over surface. By default white.
|
|
property Intensity: Single read FIntensity write SetIntensity default 1.0; |
Intensity , multiplied by color. Can be anything >= 0.
|
|
property ColorPersistent: TCastleColorRGBPersistent read FColorPersistent ; |
Color that can be visually edited in Castle Game Engine Editor, Lazarus and Delphi. Normal user code does not need to deal with this, instead read or write Color directly.
See also
- Color
- Light color shining over surface.
|
Generated by PasDoc 0.16.0.