Skip to content

Commit

Permalink
Merge pull request #438 from frading/add_copy_method_to_PhysicalCamera
Browse files Browse the repository at this point in the history
add PhysicalCamera.copy
  • Loading branch information
gkjohnson authored May 20, 2023
2 parents 04cd5f9 + d09418b commit 3c1d0a9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/objects/PhysicalCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,18 @@ export class PhysicalCamera extends PerspectiveCamera {

}

copy( source, recursive ) {

super.copy( source, recursive );

this.fStop = source.fStop;
this.apertureBlades = source.apertureBlades;
this.apertureRotation = source.apertureRotation;
this.focusDistance = source.focusDistance;
this.anamorphicRatio = source.anamorphicRatio;

return this;

}

}
11 changes: 11 additions & 0 deletions src/objects/PhysicalSpotLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ export class PhysicalSpotLight extends SpotLight {

}

copy( source, recursive ) {

super.copy( source, recursive );

this.iesTexture = source.iesTexture;
this.radius = source.radius;

return this;

}

}
10 changes: 10 additions & 0 deletions src/objects/ShapedAreaLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ export class ShapedAreaLight extends RectAreaLight {

}

copy( source, recursive ) {

super.copy( source, recursive );

this.isCircular = source.isCircular;

return this;

}

}

0 comments on commit 3c1d0a9

Please sign in to comment.