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

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.
@@ -59622,14 +59622,14 @@ void main() {
59622
59622
  camera2.layers.disable(Layers.NoRaycast);
59623
59623
  const pixelX = Math.floor(screenPos.x * this._renderTarget.width);
59624
59624
  const pixelY = Math.floor((1 - screenPos.y) * this._renderTarget.height);
59625
+ const gl = this._renderer.getContext();
59625
59626
  this._renderer.setRenderTarget(this._renderTarget);
59626
- this._renderer.setViewport(0, 0, this._renderTarget.width, this._renderTarget.height);
59627
- this._renderer.setScissor(pixelX, pixelY, 1, 1);
59628
- this._renderer.setScissorTest(true);
59629
59627
  this._renderer.setClearColor(0, 0);
59628
+ gl.enable(gl.SCISSOR_TEST);
59629
+ gl.scissor(pixelX, pixelY, 1, 1);
59630
59630
  this._renderer.clear();
59631
59631
  this._renderer.render(this._scene.threeScene, camera2);
59632
- this._renderer.setScissorTest(false);
59632
+ gl.disable(gl.SCISSOR_TEST);
59633
59633
  this._renderer.setRenderTarget(currentRenderTarget);
59634
59634
  camera2.layers.enable(Layers.NoRaycast);
59635
59635
  this._scene.threeScene.overrideMaterial = currentOverrideMaterial;