@xviewer.js/core 1.0.0-alpha.37 → 1.0.0-alpha.38

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/module.js CHANGED
@@ -5231,7 +5231,7 @@ class EnvironmentPlugin extends Plugin {
5231
5231
  const cubeRenderTarget = viewer.createCubeRenderTarget(resolution, false, floatType, 0, true);
5232
5232
  this._cubeCamera = new CubeCamera(near || viewer.camera.near, far || viewer.camera.far, cubeRenderTarget);
5233
5233
  this._cubeCamera.position.copy(position);
5234
- this._cubeCamera.layers.set(layer);
5234
+ this._cubeCamera.layers.mask = layer;
5235
5235
  const reflectMap = cubeRenderTarget.texture;
5236
5236
  this._reflectPass = new MergeRefectPass({
5237
5237
  viewer,