playcanvas
Version:
PlayCanvas WebGL game engine
63 lines (61 loc) • 1.41 kB
JavaScript
class GSplatParams {
set colorizeLod(value) {
if (this._colorizeLod !== value) {
this._colorizeLod = value;
this.dirty = true;
}
}
get colorizeLod() {
return this._colorizeLod;
}
set lodBehindPenalty(value) {
if (this._lodBehindPenalty !== value) {
this._lodBehindPenalty = value;
this.dirty = true;
}
}
get lodBehindPenalty() {
return this._lodBehindPenalty;
}
set lodRangeMin(value) {
if (this._lodRangeMin !== value) {
this._lodRangeMin = value;
this.dirty = true;
}
}
get lodRangeMin() {
return this._lodRangeMin;
}
set lodRangeMax(value) {
if (this._lodRangeMax !== value) {
this._lodRangeMax = value;
this.dirty = true;
}
}
get lodRangeMax() {
return this._lodRangeMax;
}
set lodUnderfillLimit(value) {
if (this._lodUnderfillLimit !== value) {
this._lodUnderfillLimit = value;
this.dirty = true;
}
}
get lodUnderfillLimit() {
return this._lodUnderfillLimit;
}
constructor(){
this.debugAabbs = false;
this.radialSorting = false;
this.debugNodeAabbs = false;
this.dirty = false;
this._colorizeLod = false;
this.lodUpdateDistance = 1;
this.lodUpdateAngle = 0;
this._lodBehindPenalty = 1;
this._lodRangeMin = 0;
this._lodRangeMax = 10;
this._lodUnderfillLimit = 0;
}
}
export { GSplatParams };