|
@@ -37,6 +37,14 @@ THREE.DirectionalLightHelper = function ( light, size ) {
|
|
|
|
|
|
THREE.DirectionalLightHelper.prototype = Object.create( THREE.Object3D.prototype );
|
|
|
|
|
|
+THREE.DirectionalLightHelper.prototype.dispose = function () {
|
|
|
+
|
|
|
+ this.lightPlane.geometry.dispose();
|
|
|
+ this.lightPlane.material.dispose();
|
|
|
+ this.targetLine.geometry.dispose();
|
|
|
+ this.targetLine.material.dispose();
|
|
|
+};
|
|
|
+
|
|
|
THREE.DirectionalLightHelper.prototype.update = function () {
|
|
|
|
|
|
var vector = new THREE.Vector3();
|