Skip to content

Commit

Permalink
Revert "Material: use class properties (#24237)"
Browse files Browse the repository at this point in the history
This reverts commit 1dc9d43.
  • Loading branch information
Mugen87 authored Dec 21, 2022
1 parent 9d72c68 commit 0167ab2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/materials/Material.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ let materialId = 0;

class Material extends EventDispatcher {

#alphaTest = 0;

constructor() {

super();
Expand Down Expand Up @@ -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;

}

Expand Down

0 comments on commit 0167ab2

Please sign in to comment.