the-world-engine
Version:
three.js based, unity like game engine for browser
38 lines (37 loc) • 797 B
JavaScript
import { Color } from "./Color";
export class CameraInfo {
Dt;
oo;
constructor(o, t) {
this.Dt = o;
if (t === null) {
this.oo = null;
} else if (t instanceof Color) {
this.oo = t.clone();
} else {
this.oo = t;
}
}
get priority() {
return this.Dt;
}
set priority(o) {
this.Dt = o;
}
get backgroundColor() {
return this.oo;
}
set backgroundColor(o) {
if (o === null) {
this.oo = null;
} else if (o instanceof Color) {
if (this.oo instanceof Color) {
this.oo.copy(o);
} else {
this.oo = o.clone();
}
} else {
this.oo = o;
}
}
}