Skip to content

Commit

Permalink
fix(src/materials): use super methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
linbingquan committed Feb 17, 2021
1 parent 5c852a2 commit 433d706
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/materials/LineBasicMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LineBasicMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.color.copy( source.color );

Expand Down
2 changes: 1 addition & 1 deletion src/materials/MeshDepthMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MeshDepthMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.depthPacking = source.depthPacking;

Expand Down
2 changes: 1 addition & 1 deletion src/materials/MeshLambertMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MeshLambertMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.color.copy( source.color );

Expand Down
2 changes: 1 addition & 1 deletion src/materials/MeshPhongMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class MeshPhongMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.color.copy( source.color );
this.specular.copy( source.specular );
Expand Down
2 changes: 1 addition & 1 deletion src/materials/MeshPhysicalMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class MeshPhysicalMaterial extends MeshStandardMaterial {

copy( source ) {

MeshStandardMaterial.prototype.copy.call( this, source );
super.copy( source );

this.defines = {

Expand Down
2 changes: 1 addition & 1 deletion src/materials/MeshStandardMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class MeshStandardMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.defines = { 'STANDARD': '' };

Expand Down
2 changes: 1 addition & 1 deletion src/materials/ShaderMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ShaderMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.fragmentShader = source.fragmentShader;
this.vertexShader = source.vertexShader;
Expand Down
2 changes: 1 addition & 1 deletion src/materials/SpriteMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SpriteMaterial extends Material {

copy( source ) {

Material.prototype.copy.call( this, source );
super.copy( source );

this.color.copy( source.color );

Expand Down

0 comments on commit 433d706

Please sign in to comment.