BufferGeometry

DecalGeometry

DecalGeometry can be used to create a decal mesh that serves different kinds of purposes e.g. adding unique details to models, performing dynamic visual environmental changes or covering seams.

Example

decals

var geometry = new v3d.DecalGeometry(mesh, position, orientation, size); var material = new v3d.MeshBasicMaterial({ color: 0x00ff00 }); var mesh = new v3d.Mesh(geometry, material); scene.add(mesh);

Constructor

DecalGeometry(mesh : Mesh, position : Vector3, orientation : Euler, size : Vector3)

mesh — Any mesh object.
position — Position of the decal projector.
orientation — Orientation of the decal projector.
size — Size of the decal projector.

Source

For more info on how to obtain the source code of this module see this page.