Class TCastleFog
Unit
Declaration
type TCastleFog = class(TCastleComponent)
Description
Control fog in 3D world.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleFog
Overview
Fields
nested const DefaultColor: TCastleColorRGB = (X: 0.5; Y: 0.5; Z: 0.5); |
|
nested const DefaultFogType = ftExponential; |
|
nested const DefaultVisibilityRange = 100; |
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 FogType: TFogType read FFogType write SetFogType default DefaultFogType; |
|
property VisibilityRange: Single read FVisibilityRange write SetVisibilityRange
default DefaultVisibilityRange; |
|
property ColorPersistent: TCastleColorRGBPersistent read FColorPersistent ; |
Description
Fields
nested const DefaultColor: TCastleColorRGB = (X: 0.5; Y: 0.5; Z: 0.5); |
|
nested const DefaultFogType = ftExponential; |
|
nested const DefaultVisibilityRange = 100; |
|
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
Properties
property Color: TCastleColorRGB read FColor write SetColor; |
|
In the distance, the rendered color changes into this fog color. By default this is gray (RGB 0.5,0.5,0.5). |
property FogType: TFogType read FFogType write SetFogType default DefaultFogType; |
|
Type of fog determines how quickly is the Color applied. The default is a more realistic ftExponential. |
property VisibilityRange: Single read FVisibilityRange write SetVisibilityRange
default DefaultVisibilityRange; |
|
The fog reaches maximum intensity, that is all colors are equal to Color, at this distance from the observer. |
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
|
Generated by PasDoc 0.16.0.