1 /**
2 * @author alteredq / http://alteredqualia.com/
3 */
4
5 /**@namespace*/
6 THREE.SceneUtils = {
7
8 createMultiMaterialObject: function ( geometry, materials ) {
9
10 var group = new THREE.Object3D();
11
12 for ( var i = 0, l = materials.length; i < l; i ++ ) {
13
14 group.add( new THREE.Mesh( geometry, materials[ i ] ) );
15
16 }
17
18 return group;
19
20 },
21
22 detach : function ( child, parent, scene ) {
23
24 child.applyMatrix( parent.matrixWorld );
25 parent.remove( child );
26 scene.add( child );
27
28 },
29
30 attach: function ( child, scene, parent ) {
31
32 var matrixWorldInverse = new THREE.Matrix4();
33 matrixWorldInverse.getInverse( parent.matrixWorld );
34 child.applyMatrix( matrixWorldInverse );
35
36 scene.remove( child );
37 parent.add( child );
38
39 }
40
41 };
42
nike free rn
new balance hombre baratas
cinturones gucci
ugg rebajas
cinturon gucci
ray ban baratas
nike cortez
peuterey mujer
christian louboutin madrid
mbt zapatos
gafas ray ban baratas
mbt ofertas
air max blancas
mbt barcelona
nike air max 90
woolrich barcelona
nike mujer
botas ugg
gafas de sol carrera aratas
air max 2016 baratas
oakley baratas
nike air max 2016