|
@@ -64,16 +64,6 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty
|
|
Texture.DEFAULT_IMAGE = undefined;
|
|
Texture.DEFAULT_IMAGE = undefined;
|
|
Texture.DEFAULT_MAPPING = UVMapping;
|
|
Texture.DEFAULT_MAPPING = UVMapping;
|
|
|
|
|
|
-Object.defineProperty( Texture.prototype, "needsUpdate", {
|
|
|
|
-
|
|
|
|
- set: function ( value ) {
|
|
|
|
-
|
|
|
|
- if ( value === true ) this.version ++;
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-} );
|
|
|
|
-
|
|
|
|
Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
|
|
Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
|
|
|
|
|
|
constructor: Texture,
|
|
constructor: Texture,
|
|
@@ -319,5 +309,15 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
+Object.defineProperty( Texture.prototype, "needsUpdate", {
|
|
|
|
+
|
|
|
|
+ set: function ( value ) {
|
|
|
|
+
|
|
|
|
+ if ( value === true ) this.version ++;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+} );
|
|
|
|
+
|
|
|
|
|
|
export { Texture };
|
|
export { Texture };
|