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.

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.

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

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.

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

Published property Data1: TCastleTerrainData read FData1 write SetData1;

First data for terrain heights.

Published property Data2: TCastleTerrainData read FData2 write SetData2;

Second data for terrain heights.

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

How to combine results of Data1 and Data2.


Generated by PasDoc 0.16.0-snapshot.