Skip to main content

ZylemFogHeightOptions

@zylem/game-lib


@zylem/game-lib / entity / ZylemFogHeightOptions

Interface: ZylemFogHeightOptions

Defined in: packages/game-lib/src/lib/entities/fog.ts:18

Optional vertical falloff (a.k.a. ground/height fog).

Properties​

enabled?​

optional enabled?: boolean

Defined in: packages/game-lib/src/lib/entities/fog.ts:20

Master toggle. Defaults to false.


falloff?​

optional falloff?: number

Defined in: packages/game-lib/src/lib/entities/fog.ts:27

Density falloff per world-unit beneath level. Higher values produce sharper transitions; values <= 0 disable the height contribution.


level?​

optional level?: number

Defined in: packages/game-lib/src/lib/entities/fog.ts:22

World-space Y at which fog stops attenuating (becomes fully clear).