Browse Source

Replace another 8 with maxMipLevel in lights_fragment_maps.glsl

Takahiro 7 years ago
parent
commit
07256a30da
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl

+ 1 - 2
src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl

@@ -16,8 +16,7 @@
 
 	#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )
 
-		// TODO, replace 8 with the real maxMIPLevel
-		irradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry, 8 );
+		irradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry, maxMipLevel );
 
 	#endif