Browse Source

Add aoNode to NodeMaterial clone (#32084)

Kirill Osipov 9 months ago
parent
commit
cbe52bca16
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/materials/nodes/NodeMaterial.js

+ 2 - 1
src/materials/nodes/NodeMaterial.js

@@ -182,7 +182,7 @@ class NodeMaterial extends Material {
 		 * and `alphaMap` properties. This node property allows to overwrite the default
 		 * and define the opacity with a node instead.
 		 *
-		 * If you don't want to overwrite the normals but modify the existing
+		 * If you don't want to overwrite the opacity but modify the existing
 		 * value instead, use {@link materialOpacity}.
 		 *
 		 * @type {?Node<float>}
@@ -1277,6 +1277,7 @@ class NodeMaterial extends Material {
 
 		this.lightsNode = source.lightsNode;
 		this.envNode = source.envNode;
+		this.aoNode = source.aoNode;
 
 		this.colorNode = source.colorNode;
 		this.normalNode = source.normalNode;

粤ICP备19079148号