|
@@ -2,7 +2,7 @@ import { EventDispatcher } from '../core/EventDispatcher.js';
|
|
|
import { FrontSide, NormalBlending, LessEqualDepth, AddEquation, OneMinusSrcAlphaFactor, SrcAlphaFactor, AlwaysStencilFunc, KeepStencilOp } from '../constants.js';
|
|
|
import * as MathUtils from '../math/MathUtils.js';
|
|
|
|
|
|
-let materialId = 0;
|
|
|
+let _materialId = 0;
|
|
|
|
|
|
class Material extends EventDispatcher {
|
|
|
|
|
@@ -12,7 +12,7 @@ class Material extends EventDispatcher {
|
|
|
|
|
|
this.isMaterial = true;
|
|
|
|
|
|
- Object.defineProperty( this, 'id', { value: materialId ++ } );
|
|
|
+ Object.defineProperty( this, 'id', { value: _materialId ++ } );
|
|
|
|
|
|
this.uuid = MathUtils.generateUUID();
|
|
|
|