跳转到内容

TerrainLayerDef

此内容尚不支持你的语言。

Defined in: sdk/src/terrain/layers.ts:20

One kind of ground, as a .esterrainlayer file holds it.

optional albedo?: string

Defined in: sdk/src/terrain/layers.ts:22

Project paths of the textures (see the file’s notes); an empty or missing one is made up.


optional heightBlend?: number

Defined in: sdk/src/terrain/layers.ts:37

How much the layer’s own height decides where it meets another, 0 to 1: 0 blends by the paint alone (a smooth edge, for grass into sand), 1 by the layers’ heights (stones standing through grass). Absent, it is the material’s u_heightBlend.


optional mask?: string

Defined in: sdk/src/terrain/layers.ts:24


optional normal?: string

Defined in: sdk/src/terrain/layers.ts:23


normalStrength: number

Defined in: sdk/src/terrain/layers.ts:32

How strongly the normal map bends the light: 1 as drawn, 0 flat.


roughness: number

Defined in: sdk/src/terrain/layers.ts:30

The roughness where there is no mask, 0 to 1.


tile: number

Defined in: sdk/src/terrain/layers.ts:26

How many world units one repeat of the textures covers.


tint: [number, number, number]

Defined in: sdk/src/terrain/layers.ts:28

Multiplies the albedo, 0 to 1 a channel.