Browse Source

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 14 years ago
parent
commit
575deaadc5
1 changed files with 2 additions and 2 deletions
  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 );