|
@@ -19,7 +19,7 @@ let textureId = 0;
|
|
|
|
|
|
class Texture extends EventDispatcher {
|
|
|
|
|
|
- constructor( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = 1, encoding = LinearEncoding ) {
|
|
|
+ constructor( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = Texture.DEFAULT_ANISOTROPY, encoding = LinearEncoding ) {
|
|
|
|
|
|
super();
|
|
|
|
|
@@ -304,5 +304,6 @@ class Texture extends EventDispatcher {
|
|
|
|
|
|
Texture.DEFAULT_IMAGE = null;
|
|
|
Texture.DEFAULT_MAPPING = UVMapping;
|
|
|
+Texture.DEFAULT_ANISOTROPY = 1;
|
|
|
|
|
|
export { Texture };
|