소스 검색

Fix default AO

sebastien 7 년 전
부모
커밋
c7e2dd1e17
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Materials/PBR/babylon.pbrMaterial.ts

+ 2 - 2
src/Materials/PBR/babylon.pbrMaterial.ts

@@ -32,7 +32,7 @@
          * Defines the default value of how much AO map is occluding the analytical lights
          * (point spot...).
          */
-        public static readonly DEFAULT_AO_ON_ANALYTICAL_LIGHTS = 1;
+        public static DEFAULT_AO_ON_ANALYTICAL_LIGHTS = 1;
 
         /**
          * Intensity of the direct lights e.g. the four lights available in your scene.
@@ -101,7 +101,7 @@
          */
         @serialize()
         @expandToProperty("_markAllSubMeshesAsTexturesDirty")
-        protected ambientTextureImpactOnAnalyticalLights: number = 1.0;
+        public ambientTextureImpactOnAnalyticalLights: number = PBRMaterial.DEFAULT_AO_ON_ANALYTICAL_LIGHTS;
 
         /**
          * Stores the alpha values in a texture.