Browse Source

Fix github comment

Sebastien Vandenberghe 8 năm trước cách đây
mục cha
commit
5eb11817b8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;