Skip to content

Commit

Permalink
Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tentone committed Jul 10, 2023
1 parent 2a5c307 commit 8f8812d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -30633,6 +30633,9 @@
try {
const material = self.material;
material.dispose();
if (material.map && material.map !== MapNode.defaultTexture) {
material.map.dispose();
}
}
catch (e) { }
try {
Expand Down Expand Up @@ -31237,6 +31240,12 @@
this.geometry = MapHeightNodeShader.geometry;
}
}
dispose() {
super.dispose();
if (this.material.userData.heightMap.value && this.material.userData.heightMap.value !== MapHeightNodeShader.defaultHeightTexture) {
this.material.userData.heightMap.value.dispose();
}
}
}
MapHeightNodeShader.defaultHeightTexture = TextureUtils.createFillTexture('#0186C0');
MapHeightNodeShader.geometrySize = 256;
Expand Down

0 comments on commit 8f8812d

Please sign in to comment.