Explorar el Código

Fixed decals example order.

Mr.doob hace 11 años
padre
commit
7ceb151d5d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      examples/webgl_decals.html

+ 1 - 0
examples/webgl_decals.html

@@ -289,6 +289,7 @@
 			material.color.setHex( Math.random() * 0xffffff );
 
 			var m = new THREE.Mesh( new THREE.DecalGeometry( mesh, p, r, s, check ), material );
+			m.renderDepth = - scene.children.length;
 			decals.push( m );
 			scene.add( m );