@xviewer.js/core 1.0.0-alpha.26 → 1.0.0-alpha.27
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 +5 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +5 -1
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/Viewer.d.ts +2 -0
package/dist/main.js
CHANGED
|
@@ -3341,7 +3341,7 @@ class ReflectorMaterial extends three.ShaderMaterial {
|
|
|
3341
3341
|
]);
|
|
3342
3342
|
}
|
|
3343
3343
|
channels.forEach(([key, channel])=>{
|
|
3344
|
-
|
|
3344
|
+
shader.defines[key] = "vUv" + channel;
|
|
3345
3345
|
});
|
|
3346
3346
|
}
|
|
3347
3347
|
get metalness() {
|
|
@@ -4454,6 +4454,9 @@ class Viewer extends EventEmitter {
|
|
|
4454
4454
|
get rootRotated() {
|
|
4455
4455
|
return this._rootRotated;
|
|
4456
4456
|
}
|
|
4457
|
+
get input() {
|
|
4458
|
+
return this._input;
|
|
4459
|
+
}
|
|
4457
4460
|
destroy() {
|
|
4458
4461
|
this._renderer.dispose();
|
|
4459
4462
|
this._taskManager.destroy();
|
|
@@ -5085,6 +5088,7 @@ class EnvironmentPlugin extends Plugin {
|
|
|
5085
5088
|
this._reflectPass.envMapIntensity = this.envMapIntensity;
|
|
5086
5089
|
this._mipBlurPass.exposure = this.reflectExposure;
|
|
5087
5090
|
this._mipBlurPass.blurIntensity = this.reflectBlurIntensity;
|
|
5091
|
+
renderer.autoClear = true;
|
|
5088
5092
|
this._cubeCamera.update(renderer, this._scene);
|
|
5089
5093
|
this._reflectPass.mergeReflect(this._mergeInfo);
|
|
5090
5094
|
this._mipBlurPass.mergeMipBlur(this._mergeInfo);
|