dispose method

dynamic dispose()

Implementation

dispose() {
  cubeUVmaps = WeakMap();

  if (pmremGenerator != null) {
    pmremGenerator.dispose();
    pmremGenerator = null;
  }
}