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
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleTerrainData
- TCastleTerrainCombine
Overview
Nested Types
TOperationFunc = function (const A, B: Single): Single; |
Fields
nested const DefaultOperation = opMax; |
Methods
constructor Create(AOwner: TComponent); override; |
|
function Height(const Coord, TexCoord: TVector2): Single; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Data1: TCastleTerrainData read FData1 write SetData1; |
|
property Data2: TCastleTerrainData read FData2 write SetData2; |
|
property Operation: TCastleTerrainCombineOperation read FOperation write SetOperation default opMax; |
Description
Nested Types
TOperationFunc = function (const A, B: Single): Single; |
|
This item has no description. |
Fields
nested const DefaultOperation = opMax; |
|
This item has no description. |
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
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.
|
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
property Data1: TCastleTerrainData read FData1 write SetData1; |
|
First data for terrain heights. |
property Data2: TCastleTerrainData read FData2 write SetData2; |
|
Second data for terrain heights. |
property Operation: TCastleTerrainCombineOperation read FOperation write SetOperation default opMax; |
|
Generated by PasDoc 0.16.0-snapshot.