跳转到内容

SkinCacheConfig

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

Defined in: sdk/src/render/skinCache.ts:12

The compute skin cache: a compute pass that poses each skinned mesh once a frame, so the shadow, depth and colour passes all draw the posed vertices instead of each posing them again. A device without compute (WebGL2) poses in each draw’s vertex stage either way.

behavior: "inclusive" | "exclusive"

Defined in: sdk/src/render/skinCache.ts:16

Which meshes it poses when their MeshSkin says Auto: every one (inclusive), or only those that say Enabled (exclusive).


enabled: boolean

Defined in: sdk/src/render/skinCache.ts:14

Off poses every skinned mesh in each draw’s vertex stage.


maxMegabytes: number

Defined in: sdk/src/render/skinCache.ts:18

The memory it may hold per world, in megabytes; a mesh that would take it past this is posed in the vertex stage.