Browse Source

NodeMaterial: add .customProgramCacheKey() (#24096)

sunag 3 years ago
parent
commit
bc7a37ceb5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/jsm/nodes/materials/NodeMaterial.js

+ 6 - 0
examples/jsm/nodes/materials/NodeMaterial.js

@@ -31,6 +31,12 @@ class NodeMaterial extends ShaderMaterial {
 
 	}
 
+	customProgramCacheKey() {
+
+		return this.uuid + '-' + this.version;
+
+	}
+
 	generateMain( builder ) {
 
 		const object = builder.object;