Browse Source

flat hash

sunag 5 years ago
parent
commit
31a3ad635c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/nodes/materials/NodeMaterial.js

+ 2 - 2
examples/jsm/nodes/materials/NodeMaterial.js

@@ -93,8 +93,8 @@ NodeMaterial.prototype.getHash = function () {
 
 	var hash = '{';
 
-	hash += '"vertex":' + this.vertex.getHash() + ',\n';
-	hash += '"fragment":' + this.fragment.getHash() + '\n';
+	hash += '"vertex":' + this.vertex.getHash() + ',';
+	hash += '"fragment":' + this.fragment.getHash();
 
 	hash += '}';