@@ -16,7 +16,7 @@ function AnimationAction() {
throw new Error( "THREE.AnimationAction: " +
"Use mixer.clipAction for construction." );
-};
+}
AnimationAction._new =
function AnimationAction( mixer, clip, localRoot ) {
@@ -33,7 +33,7 @@ function AnimationClip( name, duration, tracks ) {
this.trim();
this.optimize();
AnimationClip.prototype = {
@@ -25,7 +25,7 @@ function AnimationMixer( root ) {
this.timeScale = 1.0;
Object.assign( AnimationMixer.prototype, EventDispatcher.prototype, {
@@ -69,7 +69,7 @@ function AnimationObjectGroup( var_args ) {
};
AnimationObjectGroup.prototype = {
@@ -19,8 +19,10 @@ import { KeyframeTrackConstructor } from './KeyframeTrackConstructor';
*/
function KeyframeTrack( name, times, values, interpolation ) {
+
KeyframeTrackConstructor.apply( this, arguments );
KeyframeTrack.prototype = KeyframeTrackPrototype;
KeyframeTrackPrototype.constructor = KeyframeTrack;
@@ -151,4 +153,4 @@ Object.assign( KeyframeTrack, {
} );
-export { KeyframeTrack };
+export { KeyframeTrack };
@@ -19,7 +19,7 @@ function PropertyBinding( rootNode, path, parsedPath ) {
this.rootNode = rootNode;
PropertyBinding.prototype = {
@@ -50,7 +50,7 @@ function PropertyMixer( binding, typeName, valueSize ) {
this.useCount = 0;
this.referenceCount = 0;
PropertyMixer.prototype = {
@@ -16,7 +16,7 @@ function BooleanKeyframeTrack( name, times, values ) {
KeyframeTrackConstructor.call( this, name, times, values );
BooleanKeyframeTrack.prototype =
Object.assign( Object.create( KeyframeTrackPrototype ), {
@@ -15,7 +15,7 @@ function ColorKeyframeTrack( name, times, values, interpolation ) {
KeyframeTrackConstructor.call( this, name, times, values, interpolation );
ColorKeyframeTrack.prototype =
@@ -14,7 +14,7 @@ function NumberKeyframeTrack( name, times, values, interpolation ) {
NumberKeyframeTrack.prototype =
@@ -16,7 +16,7 @@ function QuaternionKeyframeTrack( name, times, values, interpolation ) {
QuaternionKeyframeTrack.prototype =
@@ -16,7 +16,7 @@ function StringKeyframeTrack( name, times, values, interpolation ) {
StringKeyframeTrack.prototype =
@@ -15,7 +15,7 @@ function VectorKeyframeTrack( name, times, values, interpolation ) {
VectorKeyframeTrack.prototype =
@@ -18,7 +18,7 @@ function Camera() {
this.matrixWorldInverse = new Matrix4();
this.projectionMatrix = new Matrix4();
Camera.prototype = Object.create( Object3D.prototype );
Camera.prototype.constructor = Camera;
@@ -86,7 +86,7 @@ function CubeCamera( near, far, cubeResolution ) {
CubeCamera.prototype = Object.create( Object3D.prototype );
CubeCamera.prototype.constructor = CubeCamera;
@@ -25,7 +25,7 @@ function OrthographicCamera( left, right, top, bottom, near, far ) {
this.updateProjectionMatrix();
OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ), {
@@ -30,7 +30,7 @@ function PerspectiveCamera( fov, aspect, near, far ) {
PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ), {
@@ -22,7 +22,7 @@ function StereoCamera() {
this.cameraR.layers.enable( 2 );
this.cameraR.matrixAutoUpdate = false;
Object.assign( StereoCamera.prototype, {
@@ -36,7 +36,7 @@ function BufferGeometry() {
this.drawRange = { start: 0, count: Infinity };
Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
@@ -12,7 +12,7 @@ function Clock( autoStart ) {
this.running = false;
Clock.prototype = {
@@ -44,7 +44,7 @@ function DirectGeometry() {
this.uvsNeedUpdate = false;
this.groupsNeedUpdate = false;
Object.assign( DirectGeometry.prototype, EventDispatcher.prototype, {
@@ -20,7 +20,7 @@ function Face3( a, b, c, normal, color, materialIndex ) {
this.materialIndex = materialIndex !== undefined ? materialIndex : 0;
Face3.prototype = {
@@ -54,7 +54,7 @@ function Geometry() {
this.lineDistancesNeedUpdate = false;
Object.assign( Geometry.prototype, EventDispatcher.prototype, {
@@ -10,7 +10,7 @@ function InstancedBufferAttribute( array, itemSize, meshPerAttribute ) {
this.meshPerAttribute = meshPerAttribute || 1;
InstancedBufferAttribute.prototype = Object.create( BufferAttribute.prototype );
InstancedBufferAttribute.prototype.constructor = InstancedBufferAttribute;
@@ -11,7 +11,7 @@ function InstancedBufferGeometry() {
this.type = 'InstancedBufferGeometry';
this.maxInstancedCount = undefined;
InstancedBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
InstancedBufferGeometry.prototype.constructor = InstancedBufferGeometry;
@@ -10,7 +10,7 @@ function InstancedInterleavedBuffer( array, stride, meshPerAttribute ) {
InstancedInterleavedBuffer.prototype = Object.create( InterleavedBuffer.prototype );
InstancedInterleavedBuffer.prototype.constructor = InstancedInterleavedBuffer;
@@ -16,7 +16,7 @@ function InterleavedBuffer( array, stride ) {
this.version = 0;
InterleavedBuffer.prototype = {
@@ -14,7 +14,7 @@ function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normal
this.normalized = normalized === true;
InterleavedBufferAttribute.prototype = {
@@ -6,7 +6,7 @@ function Layers() {
this.mask = 1;
Layers.prototype = {
@@ -91,7 +91,7 @@ function Object3D() {
this.userData = {};
Object3D.DefaultUp = new Vector3( 0, 1, 0 );
Object3D.DefaultMatrixAutoUpdate = true;
@@ -31,7 +31,7 @@ function Raycaster( origin, direction, near, far ) {
}
function ascSort( a, b ) {
@@ -15,7 +15,7 @@ function Uniform( value ) {
this.dynamic = false;
Uniform.prototype = {
@@ -19,7 +19,7 @@ function CurvePath() {
this.autoClose = false; // Automatically closes the path
CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), {
@@ -10,7 +10,7 @@ function Font( data ) {
this.data = data;
Object.assign( Font.prototype, {
@@ -21,7 +21,7 @@ function Path( points ) {
Path.prototype = PathPrototype;
PathPrototype.constructor = Path;
@@ -124,6 +124,6 @@ var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
-} )
+} );
export { PathPrototype };
@@ -20,7 +20,7 @@ function Shape() {
this.holes = [];
Shape.prototype = Object.assign( Object.create( PathPrototype ), {
@@ -8,7 +8,7 @@ function ArcCurve( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) {
EllipseCurve.call( this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );
ArcCurve.prototype = Object.create( EllipseCurve.prototype );
ArcCurve.prototype.constructor = ArcCurve;
@@ -13,7 +13,7 @@ function ClosedSplineCurve3( points ) {
this.type = 'catmullrom';
this.closed = true;
ClosedSplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype );
@@ -14,7 +14,7 @@ function CubicBezierCurve( v0, v1, v2, v3 ) {
this.v2 = v2;
this.v3 = v3;
CubicBezierCurve.prototype = Object.create( Curve.prototype );
CubicBezierCurve.prototype.constructor = CubicBezierCurve;
@@ -20,7 +20,7 @@ function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockw
this.aRotation = aRotation || 0;
EllipseCurve.prototype = Object.create( Curve.prototype );
EllipseCurve.prototype.constructor = EllipseCurve;
@@ -9,7 +9,7 @@ function LineCurve( v1, v2 ) {
this.v1 = v1;
LineCurve.prototype = Object.create( Curve.prototype );
LineCurve.prototype.constructor = LineCurve;
@@ -14,7 +14,7 @@ function QuadraticBezierCurve( v0, v1, v2 ) {
QuadraticBezierCurve.prototype = Object.create( Curve.prototype );
QuadraticBezierCurve.prototype.constructor = QuadraticBezierCurve;
@@ -8,9 +8,9 @@ import { CurveUtils } from '../CurveUtils';
function SplineCurve( points /* array of Vector2 */ ) {
- this.points = ( points == undefined ) ? [] : points;
+ this.points = ( points === undefined ) ? [] : points;
SplineCurve.prototype = Object.create( Curve.prototype );
SplineCurve.prototype.constructor = SplineCurve;
@@ -12,7 +12,7 @@ var SplineCurve3 = Curve.create(
function ( points /* array of Vector3 */ ) {
console.warn( 'THREE.SplineCurve3 will be deprecated. Please use THREE.CatmullRomCurve3' );
},
@@ -192,7 +192,7 @@ function BoxBufferGeometry( width, height, depth, widthSegments, heightSegments,
BoxBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
BoxBufferGeometry.prototype.constructor = BoxBufferGeometry;
@@ -26,7 +26,7 @@ function BoxGeometry( width, height, depth, widthSegments, heightSegments, depth
this.fromBufferGeometry( new BoxBufferGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) );
this.mergeVertices();
BoxGeometry.prototype = Object.create( Geometry.prototype );
BoxGeometry.prototype.constructor = BoxGeometry;
@@ -66,7 +66,7 @@ function CircleBufferGeometry( radius, segments, thetaStart, thetaLength ) {
this.boundingSphere = new Sphere( new Vector3(), radius );
CircleBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
CircleBufferGeometry.prototype.constructor = CircleBufferGeometry;
@@ -20,7 +20,7 @@ function CircleGeometry( radius, segments, thetaStart, thetaLength ) {
this.fromBufferGeometry( new CircleBufferGeometry( radius, segments, thetaStart, thetaLength ) );
CircleGeometry.prototype = Object.create( Geometry.prototype );
CircleGeometry.prototype.constructor = CircleGeometry;
@@ -26,7 +26,7 @@ function ConeBufferGeometry(
thetaLength: thetaLength
ConeBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
ConeBufferGeometry.prototype.constructor = ConeBufferGeometry;
@@ -26,7 +26,7 @@ function ConeGeometry(
ConeGeometry.prototype = Object.create( CylinderGeometry.prototype );
ConeGeometry.prototype.constructor = ConeGeometry;
@@ -322,7 +322,7 @@ function CylinderBufferGeometry( radiusTop, radiusBottom, height, radialSegments
CylinderBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
CylinderBufferGeometry.prototype.constructor = CylinderBufferGeometry;
@@ -25,7 +25,7 @@ function CylinderGeometry( radiusTop, radiusBottom, height, radialSegments, heig
this.fromBufferGeometry( new CylinderBufferGeometry( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) );
CylinderGeometry.prototype = Object.create( Geometry.prototype );
CylinderGeometry.prototype.constructor = CylinderGeometry;
@@ -54,7 +54,7 @@ function DodecahedronGeometry( radius, detail ) {
detail: detail
DodecahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
DodecahedronGeometry.prototype.constructor = DodecahedronGeometry;
@@ -94,7 +94,7 @@ function EdgesGeometry( geometry, thresholdAngle ) {
this.addAttribute( 'position', new BufferAttribute( new Float32Array( coords ), 3 ) );
EdgesGeometry.prototype = Object.create( BufferGeometry.prototype );
EdgesGeometry.prototype.constructor = EdgesGeometry;
@@ -56,7 +56,7 @@ function ExtrudeGeometry( shapes, options ) {
//console.log( "took", ( Date.now() - startTime ) );
ExtrudeGeometry.prototype = Object.create( Geometry.prototype );
ExtrudeGeometry.prototype.constructor = ExtrudeGeometry;
@@ -30,7 +30,7 @@ function IcosahedronGeometry( radius, detail ) {
IcosahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
IcosahedronGeometry.prototype.constructor = IcosahedronGeometry;
@@ -155,7 +155,7 @@ function LatheBufferGeometry( points, segments, phiStart, phiLength ) {
LatheBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
LatheBufferGeometry.prototype.constructor = LatheBufferGeometry;
@@ -30,7 +30,7 @@ function LatheGeometry( points, segments, phiStart, phiLength ) {
this.fromBufferGeometry( new LatheBufferGeometry( points, segments, phiStart, phiLength ) );
LatheGeometry.prototype = Object.create( Geometry.prototype );
LatheGeometry.prototype.constructor = LatheGeometry;
@@ -23,7 +23,7 @@ function OctahedronGeometry( radius, detail ) {
OctahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
OctahedronGeometry.prototype.constructor = OctahedronGeometry;
@@ -83,7 +83,7 @@ function ParametricGeometry( func, slices, stacks ) {
this.computeFaceNormals();
this.computeVertexNormals();
ParametricGeometry.prototype = Object.create( Geometry.prototype );
ParametricGeometry.prototype.constructor = ParametricGeometry;
@@ -93,7 +93,7 @@ function PlaneBufferGeometry( width, height, widthSegments, heightSegments ) {
this.addAttribute( 'normal', new BufferAttribute( normals, 3 ) );
this.addAttribute( 'uv', new BufferAttribute( uvs, 2 ) );
PlaneBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
PlaneBufferGeometry.prototype.constructor = PlaneBufferGeometry;
@@ -21,7 +21,7 @@ function PlaneGeometry( width, height, widthSegments, heightSegments ) {
this.fromBufferGeometry( new PlaneBufferGeometry( width, height, widthSegments, heightSegments ) );
PlaneGeometry.prototype = Object.create( Geometry.prototype );
PlaneGeometry.prototype.constructor = PlaneGeometry;
@@ -236,8 +236,7 @@ function PolyhedronGeometry( vertices, indices, radius, detail ) {
-
PolyhedronGeometry.prototype = Object.create( Geometry.prototype );
PolyhedronGeometry.prototype.constructor = PolyhedronGeometry;
@@ -119,7 +119,7 @@ function RingBufferGeometry( innerRadius, outerRadius, thetaSegments, phiSegment
this.addAttribute( 'normal', normals );
this.addAttribute( 'uv', uvs );
RingBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
RingBufferGeometry.prototype.constructor = RingBufferGeometry;
@@ -22,7 +22,7 @@ function RingGeometry( innerRadius, outerRadius, thetaSegments, phiSegments, the
this.fromBufferGeometry( new RingBufferGeometry( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) );
RingGeometry.prototype = Object.create( Geometry.prototype );
RingGeometry.prototype.constructor = RingGeometry;
@@ -32,7 +32,7 @@ function ShapeGeometry( shapes, options ) {
ShapeGeometry.prototype = Object.create( Geometry.prototype );
ShapeGeometry.prototype.constructor = ShapeGeometry;
@@ -100,7 +100,7 @@ function SphereBufferGeometry( radius, widthSegments, heightSegments, phiStart,
SphereBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
SphereBufferGeometry.prototype.constructor = SphereBufferGeometry;
@@ -23,7 +23,7 @@ function SphereGeometry( radius, widthSegments, heightSegments, phiStart, phiLen
this.fromBufferGeometry( new SphereBufferGeometry( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) );
SphereGeometry.prototype = Object.create( Geometry.prototype );
SphereGeometry.prototype.constructor = SphereGeometry;
@@ -23,7 +23,7 @@ function TetrahedronGeometry( radius, detail ) {
TetrahedronGeometry.prototype = Object.create( PolyhedronGeometry.prototype );
TetrahedronGeometry.prototype.constructor = TetrahedronGeometry;
@@ -49,7 +49,7 @@ function TextGeometry( text, parameters ) {
this.type = 'TextGeometry';
TextGeometry.prototype = Object.create( ExtrudeGeometry.prototype );
TextGeometry.prototype.constructor = TextGeometry;
@@ -124,7 +124,7 @@ function TorusBufferGeometry( radius, tube, radialSegments, tubularSegments, arc
TorusBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
TorusBufferGeometry.prototype.constructor = TorusBufferGeometry;
@@ -23,7 +23,7 @@ function TorusGeometry( radius, tube, radialSegments, tubularSegments, arc ) {
this.fromBufferGeometry( new TorusBufferGeometry( radius, tube, radialSegments, tubularSegments, arc ) );
TorusGeometry.prototype = Object.create( Geometry.prototype );
TorusGeometry.prototype.constructor = TorusGeometry;
@@ -163,7 +163,7 @@ function TorusKnotBufferGeometry( radius, tube, tubularSegments, radialSegments,
TorusKnotBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
TorusKnotBufferGeometry.prototype.constructor = TorusKnotBufferGeometry;
@@ -25,7 +25,7 @@ function TorusKnotGeometry( radius, tube, tubularSegments, radialSegments, p, q,
this.fromBufferGeometry( new TorusKnotBufferGeometry( radius, tube, tubularSegments, radialSegments, p, q ) );
TorusKnotGeometry.prototype = Object.create( Geometry.prototype );
TorusKnotGeometry.prototype.constructor = TorusKnotGeometry;
@@ -142,7 +142,7 @@ function TubeGeometry( path, segments, radius, radialSegments, closed, taper ) {
TubeGeometry.prototype = Object.create( Geometry.prototype );
TubeGeometry.prototype.constructor = TubeGeometry;
@@ -179,7 +179,7 @@ function WireframeGeometry( geometry ) {
WireframeGeometry.prototype = Object.create( BufferGeometry.prototype );
WireframeGeometry.prototype.constructor = WireframeGeometry;
@@ -33,7 +33,7 @@ function AxisHelper( size ) {
LineSegments.call( this, geometry, material );
AxisHelper.prototype = Object.create( LineSegments.prototype );
AxisHelper.prototype.constructor = AxisHelper;
@@ -19,7 +19,7 @@ function BoundingBoxHelper( object, hex ) {
Mesh.call( this, new BoxGeometry( 1, 1, 1 ), new MeshBasicMaterial( { color: color, wireframe: true } ) );
BoundingBoxHelper.prototype = Object.create( Mesh.prototype );
BoundingBoxHelper.prototype.constructor = BoundingBoxHelper;
@@ -27,7 +27,7 @@ function BoxHelper( object, color ) {
BoxHelper.prototype = Object.create( LineSegments.prototype );
BoxHelper.prototype.constructor = BoxHelper;
@@ -111,7 +111,7 @@ function CameraHelper( camera ) {
this.update();
CameraHelper.prototype = Object.create( LineSegments.prototype );
CameraHelper.prototype.constructor = CameraHelper;
@@ -43,7 +43,7 @@ function DirectionalLightHelper( light, size ) {
DirectionalLightHelper.prototype = Object.create( Object3D.prototype );
DirectionalLightHelper.prototype.constructor = DirectionalLightHelper;
@@ -21,7 +21,7 @@ function EdgesHelper( object, hex, thresholdAngle ) {
this.matrix = object.matrixWorld;
this.matrixAutoUpdate = false;
EdgesHelper.prototype = Object.create( LineSegments.prototype );
EdgesHelper.prototype.constructor = EdgesHelper;
@@ -53,7 +53,7 @@ function FaceNormalsHelper( object, size, hex, linewidth ) {
FaceNormalsHelper.prototype = Object.create( LineSegments.prototype );
FaceNormalsHelper.prototype.constructor = FaceNormalsHelper;
@@ -41,7 +41,7 @@ function GridHelper( size, divisions, color1, color2 ) {
GridHelper.prototype = Object.create( LineSegments.prototype );
GridHelper.prototype.constructor = GridHelper;
@@ -39,7 +39,7 @@ function HemisphereLightHelper( light, sphereSize ) {
HemisphereLightHelper.prototype = Object.create( Object3D.prototype );
HemisphereLightHelper.prototype.constructor = HemisphereLightHelper;
@@ -43,7 +43,7 @@ function PointLightHelper( light, sphereSize ) {
this.add( this.lightDistance );
PointLightHelper.prototype = Object.create( Mesh.prototype );
PointLightHelper.prototype.constructor = PointLightHelper;
@@ -47,7 +47,7 @@ function SkeletonHelper( object ) {
SkeletonHelper.prototype = Object.create( LineSegments.prototype );
@@ -52,7 +52,7 @@ function SpotLightHelper( light ) {
SpotLightHelper.prototype = Object.create( Object3D.prototype );
SpotLightHelper.prototype.constructor = SpotLightHelper;
@@ -52,7 +52,7 @@ function VertexNormalsHelper( object, size, hex, linewidth ) {
VertexNormalsHelper.prototype = Object.create( LineSegments.prototype );
VertexNormalsHelper.prototype.constructor = VertexNormalsHelper;
@@ -15,7 +15,7 @@ function WireframeHelper( object, hex ) {
WireframeHelper.prototype = Object.create( LineSegments.prototype );
WireframeHelper.prototype.constructor = WireframeHelper;
@@ -11,7 +11,7 @@ function ImmediateRenderObject( material ) {
this.material = material;
this.render = function ( renderCallback ) {};
ImmediateRenderObject.prototype = Object.create( Object3D.prototype );
ImmediateRenderObject.prototype.constructor = ImmediateRenderObject;
@@ -27,7 +27,7 @@ function MorphBlendMesh( geometry, material ) {
this.createAnimation( name, startFrame, endFrame, fps );
this.setAnimationWeight( name, 1 );
MorphBlendMesh.prototype = Object.create( Mesh.prototype );
MorphBlendMesh.prototype.constructor = MorphBlendMesh;
@@ -12,7 +12,7 @@ function AmbientLight( color, intensity ) {
this.castShadow = undefined;
AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), {
@@ -20,7 +20,7 @@ function DirectionalLight( color, intensity ) {
this.shadow = new DirectionalLightShadow();
DirectionalLight.prototype = Object.assign( Object.create( Light.prototype ), {
@@ -9,7 +9,7 @@ function DirectionalLightShadow( light ) {
LightShadow.call( this, new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );
DirectionalLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype ), {
@@ -19,7 +19,7 @@ function HemisphereLight( skyColor, groundColor, intensity ) {
this.groundColor = new Color( groundColor );
HemisphereLight.prototype = Object.assign( Object.create( Light.prototype ), {
@@ -17,7 +17,7 @@ function Light( color, intensity ) {
this.receiveShadow = undefined;
Light.prototype = Object.assign( Object.create( Object3D.prototype ), {
@@ -17,7 +17,7 @@ function LightShadow( camera ) {
this.map = null;
this.matrix = new Matrix4();
Object.assign( LightShadow.prototype, {
@@ -48,9 +48,8 @@ Object.assign( LightShadow.prototype, {
if ( this.radius !== 1 ) object.radius = this.radius;
if ( this.mapSize.x !== 512 || this.mapSize.y !== 512 ) object.mapSize = this.mapSize.toArray();
- var camera = this.camera.toJSON( false ).object;
- delete camera.matrix;
- object.camera = camera;
+ object.camera = this.camera.toJSON( false ).object;
+ delete object.camera.matrix;
return object;
@@ -32,7 +32,7 @@ function PointLight( color, intensity, distance, decay ) {
this.shadow = new LightShadow( new PerspectiveCamera( 90, 1, 0.5, 500 ) );
PointLight.prototype = Object.assign( Object.create( Light.prototype ), {