Class TCastleTerrainCombine

Unit

Declaration

type TCastleTerrainCombine = class(TCastleTerrainData)

Description

Combine (add, multiply, do maximum or minimum) two other terrain data sources. This allows to e.g. combine TCastleTerrainNoise with TCastleTerrainImage in a flexible way. For example you can use TCastleTerrainImage to force some mountains / valleys even where TCastleTerrainNoise doesn't have them.

Source: scene/castleterrain.pas (line 405).

Hierarchy

Overview

Nested Types

Published TOperationFunc = function (const A, B: Single): Single;

Fields

Public nested const DefaultOperation = opMax;

Methods

Public constructor Create(AOwner: TComponent); override;
Public function Height(const Coord, TexCoord: TVector2): Single; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Published property Data1: TCastleTerrainData read FData1 write SetData1;
Published property Data2: TCastleTerrainData read FData2 write SetData2;
Published property Operation: TCastleTerrainCombineOperation read FOperation write SetOperation default opMax;

Description

Nested Types

Published TOperationFunc = function (const A, B: Single): Single;

This item has no description.

Fields

Public nested const DefaultOperation = opMax;

This item has no description.

Source: scene/castleterrain.pas (line 424).

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: scene/castleterrain.pas (line 425).

Public function Height(const Coord, TexCoord: TVector2): Single; override;

This item has no description. Showing description inherited from TCastleTerrainData.Height.

Return height for given terrain point.

Source: scene/castleterrain.pas (line 426).

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: scene/castleterrain.pas (line 427).

Properties

Published property Data1: TCastleTerrainData read FData1 write SetData1;

First data for terrain heights.

Source: scene/castleterrain.pas (line 430).

Published property Data2: TCastleTerrainData read FData2 write SetData2;

Second data for terrain heights.

Source: scene/castleterrain.pas (line 432).

Published property Operation: TCastleTerrainCombineOperation read FOperation write SetOperation default opMax;

How to combine results of Data1 and Data2.

Source: scene/castleterrain.pas (line 434).


Generated by PasDoc 0.17.0.snapshot.