|
@@ -1,5 +1,5 @@
|
|
|
import { EventDispatcher } from '../core/EventDispatcher.js';
|
|
|
-import { FrontSide, FlatShading, NormalBlending, LessEqualDepth, AddEquation, OneMinusSrcAlphaFactor, SrcAlphaFactor, AlwaysStencilFunc, KeepStencilOp } from '../constants.js';
|
|
|
+import { FrontSide, NormalBlending, LessEqualDepth, AddEquation, OneMinusSrcAlphaFactor, SrcAlphaFactor, AlwaysStencilFunc, KeepStencilOp } from '../constants.js';
|
|
|
import * as MathUtils from '../math/MathUtils.js';
|
|
|
|
|
|
let materialId = 0;
|
|
@@ -122,15 +122,6 @@ class Material extends EventDispatcher {
|
|
|
|
|
|
}
|
|
|
|
|
|
- // for backward compatibility if shading is set in the constructor
|
|
|
- if ( key === 'shading' ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
|
|
|
- this.flatShading = ( newValue === FlatShading ) ? true : false;
|
|
|
- continue;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
const currentValue = this[ key ];
|
|
|
|
|
|
if ( currentValue === undefined ) {
|