Geometry · interface

MeshBuildOptions

What the finished mesh should carry beyond position, normal, colour and emissive.

Explained in Hello world, Meshes and geometry.

interface MeshBuildOptions
import type { MeshBuildOptions } from '@driftengine/core';

Properties

NameTypeDescription
planarUvsoptionalbooleanEmit box-projected texture coordinates in metres.
More

Off by default, because most geometry in this engine is coloured rather than textured and two floats a vertex is a real upload for a world that will never sample them. On, for a mesh that will be drawn with a SurfaceTexture.