Skip to content

Commit

Permalink
Texture: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 20, 2021
1 parent cb8a6c5 commit b11c858
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/textures/Texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ class Texture extends EventDispatcher {
this.matrixAutoUpdate = true;
this.matrix = new Matrix3();

// Values of encoding !== THREE.LinearEncoding only supported on map, envMap and emissiveMap.
//
// Also changing the encoding after already used by a Material will not automatically make the Material
// update. You need to explicitly call Material.needsUpdate to trigger it to recompile.
this.encoding = encoding;

this.generateMipmaps = true;
this.premultiplyAlpha = false;
this.flipY = true;
Expand All @@ -72,7 +66,7 @@ class Texture extends EventDispatcher {
//
// Also changing the encoding after already used by a Material will not automatically make the Material
// update. You need to explicitly call Material.needsUpdate to trigger it to recompile.
this.encoding = encoding !== undefined ? encoding : LinearEncoding;
this.encoding = encoding;

this.version = 0;
this.onUpdate = null;
Expand Down

0 comments on commit b11c858

Please sign in to comment.