three-render-objects 1.26.7 → 1.26.8

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.
@@ -46,7 +46,7 @@ function styleInject(css, ref) {
46
46
  }
47
47
  }
48
48
 
49
- var css_248z = ".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
49
+ var css_248z = ".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n top: 0;\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
50
50
  styleInject(css_248z);
51
51
 
52
52
  function _defineProperty(obj, key, value) {
@@ -1,4 +1,4 @@
1
- // Version 1.26.7 three-render-objects - https://github.com/vasturiano/three-render-objects
1
+ // Version 1.26.8 three-render-objects - https://github.com/vasturiano/three-render-objects
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
4
4
  typeof define === 'function' && define.amd ? define(['three'], factory) :
@@ -32,7 +32,7 @@
32
32
  }
33
33
  }
34
34
 
35
- var css_248z = ".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
35
+ var css_248z = ".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n top: 0;\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
36
36
  styleInject(css_248z);
37
37
 
38
38
  function _defineProperty(obj, key, value) {
@@ -660,9 +660,6 @@
660
660
  _state = STATE.PAN;
661
661
  break;
662
662
 
663
- default:
664
- _state = STATE.NONE;
665
-
666
663
  }
667
664
 
668
665
  }
@@ -825,7 +822,7 @@
825
822
 
826
823
  case 2:
827
824
  _state = STATE.TOUCH_ZOOM_PAN;
828
- _moveCurr.copy( getMouseOnCircle( event.pageX - _movePrev.pageX, event.pageY - _movePrev.pageY ) );
825
+ _moveCurr.copy( getMouseOnCircle( event.pageX - _movePrev.x, event.pageY - _movePrev.y ) );
829
826
  _movePrev.copy( _moveCurr );
830
827
  break;
831
828
 
@@ -2427,7 +2424,7 @@
2427
2424
  * Full-screen textured quad shader
2428
2425
  */
2429
2426
 
2430
- var CopyShader = {
2427
+ const CopyShader = {
2431
2428
 
2432
2429
  uniforms: {
2433
2430
 
@@ -2457,8 +2454,9 @@
2457
2454
 
2458
2455
  void main() {
2459
2456
 
2460
- vec4 texel = texture2D( tDiffuse, vUv );
2461
- gl_FragColor = opacity * texel;
2457
+ gl_FragColor = texture2D( tDiffuse, vUv );
2458
+ gl_FragColor.a *= opacity;
2459
+
2462
2460
 
2463
2461
  }`
2464
2462
 
@@ -2703,18 +2701,12 @@
2703
2701
 
2704
2702
  if ( renderTarget === undefined ) {
2705
2703
 
2706
- const parameters = {
2707
- minFilter: three$1.LinearFilter,
2708
- magFilter: three$1.LinearFilter,
2709
- format: three$1.RGBAFormat
2710
- };
2711
-
2712
2704
  const size = renderer.getSize( new three$1.Vector2() );
2713
2705
  this._pixelRatio = renderer.getPixelRatio();
2714
2706
  this._width = size.width;
2715
2707
  this._height = size.height;
2716
2708
 
2717
- renderTarget = new three$1.WebGLRenderTarget( this._width * this._pixelRatio, this._height * this._pixelRatio, parameters );
2709
+ renderTarget = new three$1.WebGLRenderTarget( this._width * this._pixelRatio, this._height * this._pixelRatio );
2718
2710
  renderTarget.texture.name = 'EffectComposer.rt1';
2719
2711
 
2720
2712
  } else {