gigakiller / threejs-decals

Dyncamic decals for THREE.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

threejs-decals

Dyncamic decals for THREE.js.

Based on the technique described here

Note, This implementation doesn't clip the edges of the polygons.

Also, and more importantly, if a triangle in the target geometry is so large that none of the vertices fall within the projection volume, the triangle will not be included in the decal geometry. For example, if you try to project a tiny decal onto a the side of a giant cube, nothing will happen.

See it in action: http://www.youtube.com/watch?v=ckLghsutfmA

About

Dyncamic decals for THREE.js


Languages

Language:JavaScript 93.6%Language:HTML 6.4%