[page:BufferGeometry] →
[name]
[name] 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
[example:webgl_decals 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
[name]([page:Mesh mesh], [page:Vector3 position], [page:Euler orientation], [page:Vector3 size])
mesh — Any mesh object.
position — Position of the decal projector.
orientation — Orientation of the decal projector.
size — Size of the decal projector.
[sourceHint]