Browse Source

Merge pull request #7191 from Vinc3r/master

API precision about opacityTexture use in PBR
David Catuhe 5 năm trước cách đây
mục cha
commit
63433b3715
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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")