arx-tools/arx-level-generator

prefabs/mesh: make texture parameter optional

Closed this issue · 1 comments

If omitted it should substitute in Texture.missingTexture, so prototyping shapes could be done faster.

// current way of doing it
const mesh = createPlaneMesh({ size: 1000, texture: Texture.missingTexture })

// proposed new way
const mesh = createPlaneMesh({ size: 1000 })

Other prefabs should have the same feature added as well.

implemented in 7e7c75f and released as v21.0.0-alpha.26