@xviewer.js/core 1.0.0-alpha.26 → 1.0.0-alpha.28

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
@@ -971,7 +971,7 @@ class TweenChain {
971
971
  _chainTween() {
972
972
  let tween = this._tween;
973
973
  if (this._chainedTween) {
974
- tween = new Tween(this._object);
974
+ tween = new Tween(this._object, this._group);
975
975
  this._chainedTween.chain(tween);
976
976
  }
977
977
  this._chainedTween = tween;
@@ -979,6 +979,7 @@ class TweenChain {
979
979
  }
980
980
  constructor(object, group){
981
981
  this._object = object;
982
+ this._group = group;
982
983
  this._tween = new Tween(object, group);
983
984
  }
984
985
  }
@@ -3339,7 +3340,7 @@ class ReflectorMaterial extends ShaderMaterial {
3339
3340
  ]);
3340
3341
  }
3341
3342
  channels.forEach(([key, channel])=>{
3342
- this.defines[key] = "vUv" + channel;
3343
+ shader.defines[key] = "vUv" + channel;
3343
3344
  });
3344
3345
  }
3345
3346
  get metalness() {
@@ -4452,6 +4453,9 @@ class Viewer extends EventEmitter {
4452
4453
  get rootRotated() {
4453
4454
  return this._rootRotated;
4454
4455
  }
4456
+ get input() {
4457
+ return this._input;
4458
+ }
4455
4459
  destroy() {
4456
4460
  this._renderer.dispose();
4457
4461
  this._taskManager.destroy();
@@ -5083,6 +5087,7 @@ class EnvironmentPlugin extends Plugin {
5083
5087
  this._reflectPass.envMapIntensity = this.envMapIntensity;
5084
5088
  this._mipBlurPass.exposure = this.reflectExposure;
5085
5089
  this._mipBlurPass.blurIntensity = this.reflectBlurIntensity;
5090
+ renderer.autoClear = true;
5086
5091
  this._cubeCamera.update(renderer, this._scene);
5087
5092
  this._reflectPass.mergeReflect(this._mergeInfo);
5088
5093
  this._mipBlurPass.mergeMipBlur(this._mergeInfo);