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.
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);
mesh — Any mesh object.
position — Position of the decal projector.
orientation — Orientation of the decal projector.
size — Size of the decal projector.
For more info on how to obtain the source code of this module see this page.