浏览代码

Fix github comment

Sebastien Vandenberghe 8 年之前
父节点
当前提交
5eb11817b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/babylon.engine.ts

+ 1 - 1
src/babylon.engine.ts

@@ -3138,7 +3138,7 @@
                     let smoothness = i / (mipSlices - 1);
                     let roughness = 1 - smoothness;
 
-                    let minLODIndex = 0 + offset; // roughness = 0
+                    let minLODIndex = offset; // roughness = 0
                     let maxLODIndex = MathTools.Log2(width) * scale + offset; // roughness = 1
 
                     let lodIndex = minLODIndex + (maxLODIndex - minLODIndex) * roughness;