Class TCastleTerrainLayer

Unit

Declaration

type TCastleTerrainLayer = class(TCastleComponent)

Description

Layer of a terrain properties. See TCastleTerrain for docs how terrain uses layers for display.

Source: src/scene/castleterrain.pas (line 441).

Hierarchy

Overview

Fields

Public nested const DefaultUvScale = 1.0;
Public nested const DefaultMetallic = 1.0;
Public nested const DefaultRoughness = 1.0;

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 GetColor write SetColor;
Published property UvScale: Single read GetUvScale write SetUvScale default DefaultUvScale;
Published property Texture: String read GetTexture write SetTexture;
Published property Metallic: Single read GetMetallic write SetMetallic default DefaultMetallic;
Published property Roughness: Single read GetRoughness write SetRoughness default DefaultRoughness;
Published property ColorPersistent: TCastleColorRGBPersistent read FColorPersistent ;

Description

Fields

Public nested const DefaultUvScale = 1.0;

This item has no description.

Source: src/scene/castleterrain.pas (line 466).

Public nested const DefaultMetallic = 1.0;

This item has no description.

Source: src/scene/castleterrain.pas (line 467).

Public nested const DefaultRoughness = 1.0;

This item has no description.

Source: src/scene/castleterrain.pas (line 468).

Methods

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

Source: src/scene/castleterrain.pas (line 474).

Public destructor Destroy; override;

This item has no description.

Source: src/scene/castleterrain.pas (line 475).

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.

Source: src/scene/castleterrain.pas (line 476).

Properties

Public property Color: TCastleColorRGB read GetColor write SetColor;

Color, multiplied by Texture. Default is white.

Source: src/scene/castleterrain.pas (line 480).

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

Source: src/scene/castleterrain.pas (line 486).

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

Source: src/scene/castleterrain.pas (line 490).

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

Source: src/scene/castleterrain.pas (line 493).

Published property Roughness: Single read GetRoughness write SetRoughness default DefaultRoughness;

The roughness of the material; values range from 0.0 (smooth) to 1.0 (rough).

Source: src/scene/castleterrain.pas (line 496).

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
Color, multiplied by Texture.

Source: src/scene/auto_generated_persistent_vectors/tcastleterrainlayer_persistent_vectors.inc (line 37).


Generated by PasDoc 0.17.0.snapshot.