The box and what it cuts | The decal is what the mesh has inside of the box, made again on every frame. Drag the arrows to move the box, or its handles to turn and scale it. Drag anywhere else to look around. Space stops the box, W, E and R change its handles, S stamps a decal.

Find the code here: THREE.DecalGeometry on GitHub | Decal Splatter