Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
87ac618a32

+ 2 - 2
src/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.ts

@@ -437,7 +437,7 @@ export class PBRMetallicRoughnessBlock extends NodeMaterialBlock {
     /**
     /**
      * Gets the ambient occlusion object parameters
      * Gets the ambient occlusion object parameters
      */
      */
-    public get ambientOcclusion(): NodeMaterialConnectionPoint {
+    public get ambientOcc(): NodeMaterialConnectionPoint {
         return this._inputs[8];
         return this._inputs[8];
     }
     }
 
 
@@ -917,7 +917,7 @@ export class PBRMetallicRoughnessBlock extends NodeMaterialBlock {
         state.compilationString += state._emitCodeFromInclude("depthPrePass", comments);
         state.compilationString += state._emitCodeFromInclude("depthPrePass", comments);
 
 
         // _____________________________ AO  _______________________________
         // _____________________________ AO  _______________________________
-        const aoBlock = this.ambientOcclusion.connectedPoint?.ownerBlock as Nullable<AmbientOcclusionBlock>;
+        const aoBlock = this.ambientOcc.connectedPoint?.ownerBlock as Nullable<AmbientOcclusionBlock>;
 
 
         state.compilationString += AmbientOcclusionBlock.GetCode(aoBlock);
         state.compilationString += AmbientOcclusionBlock.GetCode(aoBlock);
 
 

+ 1 - 1
tests/validation/config.json

@@ -79,7 +79,7 @@
         },    
         },    
         {
         {
             "title": "Node material PBR 1",
             "title": "Node material PBR 1",
-            "playgroundId": "#D8AK3Z#7",
+            "playgroundId": "#D8AK3Z#15",
             "referenceImage": "node-material-pbr-1.png"
             "referenceImage": "node-material-pbr-1.png"
         },    
         },    
         {
         {