Class TCastlePointLight
Unit
Declaration
type TCastlePointLight = class(TCastlePunctualLight)
Description
Point light is a point in 3D space that shines uniformly in all directions. The rotation of this transformation doesn't matter.
See X3D PointLight specification for various details.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTransform
- TCastleAbstractLight
- TCastlePunctualLight
- TCastlePointLight
Overview
Fields
nested const DefaultRadius = 100.0; |
|
nested const DefaultIntensity = 100.0; |
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Color: TCastleColorRGB read FColor write SetColor; |
|
property Attenuation: TVector3 read FAttenuation write SetAttenuation; |
|
property Intensity: Single read FIntensity write SetIntensity default DefaultIntensity; |
|
property Radius: Single read FRadius write SetRadius default DefaultRadius; |
|
property ColorPersistent: TCastleColorRGBPersistent read FColorPersistent ; |
|
property AttenuationPersistent: TCastleVector3Persistent read FAttenuationPersistent ; |
Description
Fields
nested const DefaultRadius = 100.0; |
|
This item has no description. |
nested const DefaultIntensity = 100.0; |
|
This item has no description. |
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
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
property Color: TCastleColorRGB read FColor write SetColor; |
|
Light color shining over surface. By default white. |
property Attenuation: TVector3 read FAttenuation write SetAttenuation; |
|
Attenuation determines how quickly light intensity falls off with distance. By default Vector3(0, 0, 1), which means light falls off according to inverse square law. |
property Intensity: Single read FIntensity write SetIntensity default DefaultIntensity; |
|
Following glTF lights specification, the point light's The default |
property Radius: Single read FRadius write SetRadius default DefaultRadius; |
|
Light doesn't shine at all outside of a sphere with this radius. For performance reasons, set this as small as possible, to avoid even considering this light at further shapes. Set to -1 to have no limit. |
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
|
property AttenuationPersistent: TCastleVector3Persistent read FAttenuationPersistent ; |
|
Attenuation 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 Attenuation directly. See also
|
Generated by PasDoc 0.16.0-snapshot.