浏览代码

Clean up.

Mr.doob 9 年之前
父节点
当前提交
79a26da713
共有 2 个文件被更改,包括 7 次插入8 次删除
  1. 4 5
      examples/misc_sound.html
  2. 3 3
      src/renderers/shaders/ShaderChunk/lights_template.glsl

+ 4 - 5
examples/misc_sound.html

@@ -242,14 +242,13 @@
 
 			function render() {
 
-				var delta = clock.getDelta(),
-					time = clock.getElapsedTime() * 5;
+				var delta = clock.getDelta();
 
 				controls.update( delta );
 
-				material_sphere1.emissive.b = ( analyser1.getData()[ 8 ] / 256 );
-				material_sphere2.emissive.b = ( analyser2.getData()[ 8 ] / 256 );
-				material_sphere3.emissive.b = ( analyser3.getData()[ 8 ] / 256 );
+				material_sphere1.emissive.b = analyser1.getData()[ 8 ] / 256;
+				material_sphere2.emissive.b = analyser2.getData()[ 8 ] / 256;
+				material_sphere3.emissive.b = analyser3.getData()[ 8 ] / 256;
 
 				renderer.render( scene, camera );
 

+ 3 - 3
src/renderers/shaders/ShaderChunk/lights_template.glsl

@@ -112,12 +112,12 @@ geometry.viewDir = normalize( vViewPosition );
 
 		#endif
 
-		#if defined( USE_ENVMAP ) && defined( STANDARD )
+		// #if defined( USE_ENVMAP ) && defined( STANDARD )
 
 			// TODO, replace 8 with the real maxMIPLevel
-			//indirectDiffuseIrradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry, 8 ); // comment out until seams are fixed
+			// indirectDiffuseIrradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry, 8 ); // comment out until seams are fixed
 
-		#endif
+		// #endif
 
 		Material_RE_IndirectDiffuseLight( indirectDiffuseIrradiance, geometry, material, reflectedLight );