Class TCastleTerrainLayer
Unit
Declaration
type TCastleTerrainLayer = class(TCastleComponent)
Description
Layer of a terrain properties. See TCastleTerrain for docs how terrain uses layers for display.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTerrainLayer
Overview
Fields
nested const DefaultUvScale = 1.0; |
|
nested const DefaultMetallic = 1.0; |
|
nested const DefaultRoughness = 1.0; |
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Color: TCastleColorRGB read GetColor write SetColor; |
|
property UvScale: Single read GetUvScale write SetUvScale default DefaultUvScale; |
|
property Texture: String read GetTexture write SetTexture; |
|
property Metallic: Single read GetMetallic write SetMetallic default DefaultMetallic; |
|
property Roughness: Single read GetRoughness write SetRoughness default DefaultRoughness; |
|
property ColorPersistent: TCastleColorRGBPersistent read FColorPersistent ; |
Description
Fields
nested const DefaultUvScale = 1.0; |
|
This item has no description. |
nested const DefaultMetallic = 1.0; |
|
This item has no description. |
nested const DefaultRoughness = 1.0; |
|
This item has no description. |
Methods
constructor Create(AOwner: TComponent); override; |
|
Public constructor for this class raises exception. Never create instances of this class directly. The instances of this class should only be created by implementation of TCastleTerrain, access them as TCastleTerrain subcomponents like TCastleTerrain.Layer1. |
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 GetColor write SetColor; |
|
Color, multiplied by Texture. Default is white. |
property UvScale: Single read GetUvScale write SetUvScale default DefaultUvScale; |
|
Scale the Texture. Setting UV scale to be equal to 1/TCastleTerrain.Size reliably makes the texture image size match the whole terrain. |
property Texture: String read GetTexture write SetTexture; |
|
Texture URL. Texture is multiplied by Color. Default (none) behaves as if it was a white texture for calculation. |
property Metallic: Single read GetMetallic write SetMetallic default DefaultMetallic; |
|
The metalness of the material; values range from 0.0 (non-metal) to 1.0 (metal). |
property Roughness: Single read GetRoughness write SetRoughness default DefaultRoughness; |
|
The roughness of the material; values range from 0.0 (smooth) to 1.0 (rough). |
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-snapshot.