Class TCastleDirectionalLight

Unit

Declaration

type TCastleDirectionalLight = class(TCastlePunctualLight)

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

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property Color: TCastleColorRGB read FColor write SetColor;
Published property Intensity: Single read FIntensity write SetIntensity default 1.0;
Published property ColorPersistent: TCastleColorRGBPersistent read FColorPersistent ;

Description

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Properties

Public property Color: TCastleColorRGB read FColor write SetColor;

Light color shining over surface. By default white.

Published property Intensity: Single read FIntensity write SetIntensity default 1.0;

Intensity, multiplied by color. Can be anything >= 0.

Published 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.