FogOfWarData
此内容尚不支持你的语言。
Defined in: sdk/src/render/fogOfWar.ts:32
The fields of the FogOfWar component.
Properties
Section titled “Properties”enabled
Section titled “enabled”enabled:
boolean
Defined in: sdk/src/render/fogOfWar.ts:43
Off: the fog is not painted and the effect draws nothing.
height
Section titled “height”height:
number
Defined in: sdk/src/render/fogOfWar.ts:35
rays:
number
Defined in: sdk/src/render/fogOfWar.ts:41
How many rays are cast from each viewer: the fineness of the field of view’s edge.
texels
Section titled “texels”texels:
number
Defined in: sdk/src/render/fogOfWar.ts:37
How many texels a side the maps are. More is finer edges and more to paint.
viewRadius
Section titled “viewRadius”viewRadius:
number
Defined in: sdk/src/render/fogOfWar.ts:39
How far a viewer with no radius of its own sees, in world units.
width:
number
Defined in: sdk/src/render/fogOfWar.ts:34
The world rectangle the fog covers, centred on the entity, in world units.