rayzee 7.13.0 → 7.14.0
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/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Rayzee Engine
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/rayzee)
|
|
4
|
-
[](https://www.npmjs.com/package/rayzee)
|
|
4
|
+
[](https://www.npmjs.com/package/rayzee)
|
|
5
5
|
[](https://www.npmjs.com/package/rayzee)
|
|
6
6
|
[](https://www.jsdelivr.com/package/npm/rayzee)
|
|
7
7
|
|
package/dist/rayzee.es.js
CHANGED
|
@@ -7013,7 +7013,7 @@ var ic = class {
|
|
|
7013
7013
|
return r;
|
|
7014
7014
|
}
|
|
7015
7015
|
addDirectionalLight(e) {
|
|
7016
|
-
if (e.intensity <= 0) return;
|
|
7016
|
+
if (!e.visible || e.intensity <= 0) return;
|
|
7017
7017
|
e.updateMatrixWorld();
|
|
7018
7018
|
let t = e.getWorldPosition(new rn()), n;
|
|
7019
7019
|
if (e.target) {
|
|
@@ -7042,7 +7042,7 @@ var ic = class {
|
|
|
7042
7042
|
});
|
|
7043
7043
|
}
|
|
7044
7044
|
addRectAreaLight(e) {
|
|
7045
|
-
if (e.intensity <= 0) return;
|
|
7045
|
+
if (!e.visible || e.intensity <= 0) return;
|
|
7046
7046
|
e.updateMatrixWorld();
|
|
7047
7047
|
let t = e.getWorldPosition(new rn()), n = e.getWorldQuaternion(new Ft()), r = e.getWorldScale(new rn()), i = e.width * r.x * .5, a = e.height * r.y * .5, o = new rn(i, 0, 0).applyQuaternion(n), s = new rn(0, -a, 0).applyQuaternion(n), c = this.calculateLightImportance(e, "area"), l = e.userData?.normalize ?? !0 ? 1 : 0, u = Number.isFinite(e.userData?.spread) ? e.userData.spread : Math.PI, d = +(e.userData?.shape === "ellipse" || e.userData?.shape === "disk" || e.userData?.shape === 1), f = rc(e);
|
|
7048
7048
|
this.areaLightCache.push({
|
|
@@ -7069,7 +7069,7 @@ var ic = class {
|
|
|
7069
7069
|
});
|
|
7070
7070
|
}
|
|
7071
7071
|
addPointLight(e) {
|
|
7072
|
-
if (e.intensity <= 0) return;
|
|
7072
|
+
if (!e.visible || e.intensity <= 0) return;
|
|
7073
7073
|
e.updateMatrixWorld();
|
|
7074
7074
|
let t = e.getWorldPosition(new rn()), n = this.calculateLightImportance(e, "point"), r = rc(e);
|
|
7075
7075
|
this.pointLightCache.push({
|
|
@@ -7089,7 +7089,7 @@ var ic = class {
|
|
|
7089
7089
|
});
|
|
7090
7090
|
}
|
|
7091
7091
|
addSpotLight(e) {
|
|
7092
|
-
if (e.intensity <= 0) return;
|
|
7092
|
+
if (!e.visible || e.intensity <= 0) return;
|
|
7093
7093
|
e.updateMatrixWorld();
|
|
7094
7094
|
let t = e.getWorldPosition(new rn()), n = (e.target ? e.target.getWorldPosition(new rn()) : new rn(0, 0, -1)).sub(t).normalize(), r = this.calculateLightImportance(e, "spot"), i = e.userData?.gobo, a = i && Number.isInteger(i.index) ? i.index : -1, o = i && typeof i.intensity == "number" ? i.intensity : 1, s = i && i.inverted ? -Math.abs(o) : Math.abs(o), c = e.userData?.ies, l = c && Number.isInteger(c.index) ? c.index : -1, u = c && typeof c.intensity == "number" ? c.intensity : 1, d = rc(e);
|
|
7095
7095
|
this.spotLightCache.push({
|
|
@@ -14526,6 +14526,7 @@ var rf = {
|
|
|
14526
14526
|
uuid: e.uuid,
|
|
14527
14527
|
name: e.name,
|
|
14528
14528
|
type: e.type,
|
|
14529
|
+
visible: e.visible,
|
|
14529
14530
|
intensity: e.intensity,
|
|
14530
14531
|
color: `#${e.color.getHexString()}`,
|
|
14531
14532
|
position: [
|