vim-web 1.0.0-alpha.4 → 1.0.0-alpha.6

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/vim-web.js CHANGED
@@ -59606,14 +59606,14 @@ class GpuPicker {
59606
59606
  camera2.layers.disable(Layers2.NoRaycast);
59607
59607
  const pixelX = Math.floor(screenPos.x * this._renderTarget.width);
59608
59608
  const pixelY = Math.floor((1 - screenPos.y) * this._renderTarget.height);
59609
+ const gl = this._renderer.getContext();
59609
59610
  this._renderer.setRenderTarget(this._renderTarget);
59610
- this._renderer.setViewport(0, 0, this._renderTarget.width, this._renderTarget.height);
59611
- this._renderer.setScissor(pixelX, pixelY, 1, 1);
59612
- this._renderer.setScissorTest(true);
59613
59611
  this._renderer.setClearColor(0, 0);
59612
+ gl.enable(gl.SCISSOR_TEST);
59613
+ gl.scissor(pixelX, pixelY, 1, 1);
59614
59614
  this._renderer.clear();
59615
59615
  this._renderer.render(this._scene.threeScene, camera2);
59616
- this._renderer.setScissorTest(false);
59616
+ gl.disable(gl.SCISSOR_TEST);
59617
59617
  this._renderer.setRenderTarget(currentRenderTarget);
59618
59618
  camera2.layers.enable(Layers2.NoRaycast);
59619
59619
  this._scene.threeScene.overrideMaterial = currentOverrideMaterial;