|
@@ -63,24 +63,27 @@ function Material() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-Object.assign( Material.prototype, EventDispatcher.prototype, {
|
|
|
-
|
|
|
- constructor: Material,
|
|
|
-
|
|
|
- isMaterial: true,
|
|
|
+Object.defineProperty( Material.prototype, "needsUpdate", {
|
|
|
|
|
|
- get needsUpdate() {
|
|
|
+ get: function() {
|
|
|
|
|
|
return this._needsUpdate;
|
|
|
|
|
|
},
|
|
|
-
|
|
|
- set needsUpdate( value ) {
|
|
|
+ set: function(value) {
|
|
|
|
|
|
if ( value === true ) this.update();
|
|
|
this._needsUpdate = value;
|
|
|
|
|
|
- },
|
|
|
+ }
|
|
|
+
|
|
|
+});
|
|
|
+
|
|
|
+Object.assign( Material.prototype, EventDispatcher.prototype, {
|
|
|
+
|
|
|
+ constructor: Material,
|
|
|
+
|
|
|
+ isMaterial: true,
|
|
|
|
|
|
setValues: function ( values ) {
|
|
|
|