From 0167ab2c47957b0ddec211cb818312055de0652d Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Wed, 21 Dec 2022 19:42:56 +0100 Subject: [PATCH] Revert "Material: use class properties (#24237)" This reverts commit 1dc9d436cb0eda8a7b9481e19e465e820b7e193d. --- src/materials/Material.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/materials/Material.js b/src/materials/Material.js index 9af3bdf849bb9f..fbad4438ac29bd 100644 --- a/src/materials/Material.js +++ b/src/materials/Material.js @@ -6,8 +6,6 @@ let materialId = 0; class Material extends EventDispatcher { - #alphaTest = 0; - constructor() { super(); @@ -75,23 +73,25 @@ class Material extends EventDispatcher { this.version = 0; + this._alphaTest = 0; + } get alphaTest() { - return this.#alphaTest; + return this._alphaTest; } set alphaTest( value ) { - if ( this.#alphaTest > 0 !== value > 0 ) { + if ( this._alphaTest > 0 !== value > 0 ) { this.version ++; } - this.#alphaTest = value; + this._alphaTest = value; }