Selaa lähdekoodia

Replace another 8 with maxMipLevel in lights_fragment_maps.glsl

Takahiro 7 vuotta sitten
vanhempi
sitoutus
07256a30da
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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