Skip to content

paintPathSurfaces

paintPathSurfaces(geometry, surface): void

Defined in: packages/engine/src/gameplay/map/groundMesh.ts:63

Colours each vertex toward its path’s surface, by how much of the path it is in, and white elsewhere, which leaves the ground’s texture as it is. The ground’s material reads it as its vertex colours. ponytail: painted per vertex, so a path narrower than the map’s cell can miss every vertex, as its flat lane already does; a distance channel the material samples would paint it.

Parameter Type
geometry PlaneGeometry
surface Pick<GroundSurface, "getPathSurfaceAt">

void