rayzee 5.0.2 → 5.1.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
@@ -301,6 +301,11 @@ engine.setTextureTransform(index, name, transform) // Update texture transform
301
301
  engine.reset() // Re-upload all material data to GPU
302
302
  engine.stages.pathTracer.materialData.updateMaterial(index, mat) // Replace a material
303
303
  await engine.rebuildMaterials(scene) // Full rebuild (after texture changes)
304
+
305
+ // Per-mesh visibility (toggle Three.js object.visible, then sync to GPU)
306
+ object.visible = false; // Set on any mesh or group
307
+ engine.updateAllMeshVisibility() // Recompute all mesh visibility from scene hierarchy
308
+ engine.setMeshVisibility(meshIndex, visible) // Update single mesh visibility
304
309
  ```
305
310
 
306
311
  ### engine.environmentManager