Explorar o código

Fixed broken depth-of-field example.

Still something is wrong with this new implicit way of sharing programs. DOF example is noticeably slower than it was before, especially in ANGLE :(.
alteredq %!s(int64=14) %!d(string=hai) anos
pai
achega
575deaadc5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/webgl_postprocessing_dof.html

+ 2 - 2
examples/webgl_postprocessing_dof.html

@@ -134,7 +134,7 @@
 				for ( k = 0; k < zgrid; k++ ) {
 
 					materials[c] = new THREE.MeshBasicMaterial( parameters );
-					materials[c].program = material_base.program;
+					//materials[c].program = material_base.program;
 
 					if ( singleMaterial )
 						mesh = new THREE.Mesh( geo, zmaterial );
@@ -171,7 +171,7 @@
 				stats = new Stats();
 				stats.domElement.style.position = 'absolute';
 				stats.domElement.style.top = '0px';
-				//container.appendChild( stats.domElement );
+				container.appendChild( stats.domElement );
 
 				document.addEventListener( 'mousemove', onDocumentMouseMove, false );
 				document.addEventListener( 'touchstart', onDocumentTouchStart, false );