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