bg2e-js 2.2.10 → 2.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bg2e-js.js +2 -2
- package/dist/bg2e-js.js.map +1 -1
- package/package.json +1 -1
- package/src/base/Light.ts +8 -8
package/dist/bg2e-js.js
CHANGED
|
@@ -6280,9 +6280,9 @@ class xt {
|
|
|
6280
6280
|
}
|
|
6281
6281
|
set color(e) {
|
|
6282
6282
|
if (e.length === 3)
|
|
6283
|
-
this._color = new
|
|
6283
|
+
this._color = new p([e[0], e[1], e[2], 1]);
|
|
6284
6284
|
else if (e.length === 4)
|
|
6285
|
-
this._color = new
|
|
6285
|
+
this._color = new p(e);
|
|
6286
6286
|
else
|
|
6287
6287
|
throw new Error("Invalid light color assignment. Parameter must be a three or four component array.");
|
|
6288
6288
|
}
|