Browse Source

is* adjustment

Rawr 5 years ago
parent
commit
65cf52e12f

+ 1 - 1
src/textures/CanvasTexture.js

@@ -6,11 +6,11 @@ class CanvasTexture extends Texture {
 
 		super( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
 		this.needsUpdate = true;
-		this.isCanvasTexture = true;
 
 	}
 
 }
 
+CanvasTexture.prototype.isCanvasTexture = true;
 
 export { CanvasTexture };

+ 1 - 2
src/textures/CompressedTexture.js

@@ -18,11 +18,10 @@ class CompressedTexture extends Texture {
 
 		this.generateMipmaps = false;
 
-		this.isCompressedTexture = true;
-
 	}
 
 }
 
+CompressedTexture.prototype.isCompressedTexture = true;
 
 export { CompressedTexture };

+ 1 - 1
src/textures/CubeTexture.js

@@ -12,7 +12,6 @@ class CubeTexture extends Texture {
 		super( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding );
 
 		this.flipY = false;
-		this.isCubeTexture = true;
 
 	}
 
@@ -30,5 +29,6 @@ class CubeTexture extends Texture {
 
 }
 
+CubeTexture.prototype.isCubeTexture = true;
 
 export { CubeTexture };

+ 1 - 1
src/textures/DataTexture.js

@@ -16,11 +16,11 @@ class DataTexture extends Texture {
 		this.unpackAlignment = 1;
 
 		this.needsUpdate = true;
-		this.isDataTexture = true;
 
 	}
 
 }
 
+DataTexture.prototype.isDataTexture = true;
 
 export { DataTexture };

+ 1 - 2
src/textures/DataTexture2DArray.js

@@ -19,11 +19,10 @@ class DataTexture2DArray extends Texture {
 
 		this.needsUpdate = true;
 
-		this.isDataTexture2DArray = true;
-
 	}
 
 }
 
+DataTexture2DArray.prototype.isDataTexture2DArray = true;
 
 export { DataTexture2DArray };

+ 1 - 2
src/textures/DataTexture3D.js

@@ -27,11 +27,10 @@ class DataTexture3D extends Texture {
 
 		this.needsUpdate = true;
 
-		this.isDataTexture3D = true;
-
 	}
 
 }
 
+DataTexture3D.prototype.isDataTexture3D = true;
 
 export { DataTexture3D };

+ 1 - 2
src/textures/DepthTexture.js

@@ -26,12 +26,11 @@ class DepthTexture extends Texture {
 		this.flipY = false;
 		this.generateMipmaps	= false;
 
-		this.isDepthTexture = true;
-
 	}
 
 
 }
 
+DepthTexture.prototype.isDepthTexture = true;
 
 export { DepthTexture };

+ 1 - 2
src/textures/Texture.js

@@ -71,8 +71,6 @@ class Texture extends EventDispatcher {
 		this.DEFAULT_IMAGE = undefined;
 		this.DEFAULT_MAPPING = UVMapping;
 
-		this.isTexture = true;
-
 	}
 
 	updateMatrix() {
@@ -322,5 +320,6 @@ class Texture extends EventDispatcher {
 
 }
 
+Texture.prototype.isTexture = true;
 
 export { Texture };

+ 1 - 2
src/textures/VideoTexture.js

@@ -29,8 +29,6 @@ class VideoTexture extends Texture {
 
 		}
 
-		this.isVideoTexture = true;
-
 	}
 
 	update() {
@@ -48,5 +46,6 @@ class VideoTexture extends Texture {
 
 }
 
+VideoTexture.prototype.isVideoTexture = true;
 
 export { VideoTexture };