|
@@ -1683,7 +1683,7 @@ function serializeImage(image) {
|
|
|
|
|
|
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();
|
|
|
this.isTexture = true;
|
|
|
Object.defineProperty(this, 'id', {
|
|
@@ -1857,6 +1857,7 @@ class Texture extends EventDispatcher {
|
|
|
}
|
|
|
Texture.DEFAULT_IMAGE = null;
|
|
|
Texture.DEFAULT_MAPPING = UVMapping;
|
|
|
+Texture.DEFAULT_ANISOTROPY = 1;
|
|
|
|
|
|
class Vector4 {
|
|
|
constructor(x = 0, y = 0, z = 0, w = 1) {
|