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

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.
@@ -59623,8 +59623,9 @@ void main() {
59623
59623
  const pixelX = Math.floor(screenPos.x * this._renderTarget.width);
59624
59624
  const pixelY = Math.floor((1 - screenPos.y) * this._renderTarget.height);
59625
59625
  this._renderer.setRenderTarget(this._renderTarget);
59626
- this._renderer.setScissorTest(true);
59626
+ this._renderer.setViewport(0, 0, this._renderTarget.width, this._renderTarget.height);
59627
59627
  this._renderer.setScissor(pixelX, pixelY, 1, 1);
59628
+ this._renderer.setScissorTest(true);
59628
59629
  this._renderer.setClearColor(0, 0);
59629
59630
  this._renderer.clear();
59630
59631
  this._renderer.render(this._scene.threeScene, camera2);
@@ -59641,6 +59642,8 @@ void main() {
59641
59642
  1,
59642
59643
  this._readBuffer
59643
59644
  );
59645
+ console.log("GPU Pick buffer:", this._readBuffer[0], this._readBuffer[1], this._readBuffer[2], this._readBuffer[3]);
59646
+ console.log("GPU Pick screen:", screenPos.x, screenPos.y, "pixel:", pixelX, pixelY, "target:", this._renderTarget.width, "x", this._renderTarget.height);
59644
59647
  const depth = this._readBuffer[1];
59645
59648
  const normalX = this._readBuffer[2];
59646
59649
  const normalY = this._readBuffer[3];