Garrett Johnson 5 năm trước cách đây
mục cha
commit
aa3fe5c122
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/three/DebugTilesRenderer.js

+ 2 - 0
src/three/DebugTilesRenderer.js

@@ -228,6 +228,8 @@ export class DebugTilesRenderer extends TilesRenderer {
 						}
 						case DISTANCE: {
 
+							// We don't update the distance if the geometric error is 0.0 so
+							// it will always be black.
 							const val = Math.min( tile.cached.distance / maxDistance, 1 );
 							c.material.color.setRGB( val, val, val );
 							break;