definePaintedSurface
definePaintedSurface(
options?):ModelMaterial
A model material that paints a model in masses, as a painted register
draws: its vertex colour, times a vertical gradient, darkened by its
baked occlusion, with its map’s grain flat in the sun and the distance
and painted under a lamp. Pass it as InstancedModel’s, an entity’s,
a detail level’s or registerModel’s material; define it once, at
module scope. A plant moves in the wind with foliage outside it,
(original) => foliage(painted(original)). It dresses three’s standard
and physical materials, with smooth normals.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
PaintedSurfaceOptions |