瀏覽代碼

Add comment for 0.8 constant

Gary Hsu 7 年之前
父節點
當前提交
e0c0ddb3dc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Tools/babylon.environmentTextureTools.ts

+ 1 - 0
src/Tools/babylon.environmentTextureTools.ts

@@ -114,6 +114,7 @@ module BABYLON {
             if (manifest.specular) {
                 // Extend the header with the position of the payload.
                 manifest.specular.specularDataPosition = pos;
+                // Fallback to 0.8 exactly if lodGenerationScale is not defined for backward compatibility.
                 manifest.specular.lodGenerationScale = manifest.specular.lodGenerationScale || 0.8;
             }