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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayzee",
3
- "version": "7.13.0",
3
+ "version": "7.14.0",
4
4
  "type": "module",
5
5
  "description": "Real-time WebGPU path tracing engine built on Three.js",
6
6
  "main": "dist/rayzee.umd.js",
@@ -90,6 +90,7 @@ export class LightSerializer {
90
90
 
91
91
  addDirectionalLight( light ) {
92
92
 
93
+ if ( ! light.visible ) return; // Skip hidden lights
93
94
  if ( light.intensity <= 0.0 ) return; // Skip zero intensity lights
94
95
 
95
96
  light.updateMatrixWorld();
@@ -146,6 +147,7 @@ export class LightSerializer {
146
147
 
147
148
  addRectAreaLight( light ) {
148
149
 
150
+ if ( ! light.visible ) return; // Skip hidden lights
149
151
  if ( light.intensity <= 0.0 ) return; // Skip zero intensity lights
150
152
 
151
153
  light.updateMatrixWorld();
@@ -190,6 +192,7 @@ export class LightSerializer {
190
192
 
191
193
  addPointLight( light ) {
192
194
 
195
+ if ( ! light.visible ) return; // Skip hidden lights
193
196
  if ( light.intensity <= 0.0 ) return; // Skip zero intensity lights
194
197
 
195
198
  light.updateMatrixWorld();
@@ -218,6 +221,7 @@ export class LightSerializer {
218
221
 
219
222
  addSpotLight( light ) {
220
223
 
224
+ if ( ! light.visible ) return; // Skip hidden lights
221
225
  if ( light.intensity <= 0.0 ) return; // Skip zero intensity lights
222
226
 
223
227
  light.updateMatrixWorld();
@@ -330,6 +330,7 @@ export class LightManager extends EventDispatcher {
330
330
  uuid: light.uuid,
331
331
  name: light.name,
332
332
  type: light.type,
333
+ visible: light.visible,
333
334
  intensity: light.intensity,
334
335
  color: `#${light.color.getHexString()}`,
335
336
  position: [ light.position.x, light.position.y, light.position.z ],