瀏覽代碼

Replace another 8 with maxMipLevel in lights_fragment_maps.glsl

Takahiro 7 年之前
父節點
當前提交
07256a30da
共有 1 個文件被更改,包括 1 次插入2 次删除
  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