瀏覽代碼

Merge pull request #7191 from Vinc3r/master

API precision about opacityTexture use in PBR
David Catuhe 5 年之前
父節點
當前提交
63433b3715
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Materials/PBR/pbrMaterial.ts

+ 1 - 1
src/Materials/PBR/pbrMaterial.ts

@@ -115,7 +115,7 @@ export class PBRMaterial extends PBRBaseMaterial {
     public ambientTextureImpactOnAnalyticalLights: number = PBRMaterial.DEFAULT_AO_ON_ANALYTICAL_LIGHTS;
 
     /**
-     * Stores the alpha values in a texture.
+     * Stores the alpha values in a texture. Use luminance if texture.getAlphaFromRGB is true.
      */
     @serializeAsTexture()
     @expandToProperty("_markAllSubMeshesAsTexturesAndMiscDirty")