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

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.

Public nested const DefaultMetallic = 1.0;

This item has no description.

Public nested const DefaultRoughness = 1.0;

This item has no description.

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.

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 GetColor write SetColor;

Color, multiplied by Texture. Default is white.

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.

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.

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

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

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.

Generated by PasDoc 0.16.0-snapshot.