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;
 

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;

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.