Parcourir la source

Replace another 8 with maxMipLevel in lights_fragment_maps.glsl

Takahiro il y a 7 ans
Parent
commit
07256a30da
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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