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.
- package/dist/vim-web.iife.js +4 -1
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +4 -1
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -59607,8 +59607,9 @@ class GpuPicker {
|
|
|
59607
59607
|
const pixelX = Math.floor(screenPos.x * this._renderTarget.width);
|
|
59608
59608
|
const pixelY = Math.floor((1 - screenPos.y) * this._renderTarget.height);
|
|
59609
59609
|
this._renderer.setRenderTarget(this._renderTarget);
|
|
59610
|
-
this._renderer.
|
|
59610
|
+
this._renderer.setViewport(0, 0, this._renderTarget.width, this._renderTarget.height);
|
|
59611
59611
|
this._renderer.setScissor(pixelX, pixelY, 1, 1);
|
|
59612
|
+
this._renderer.setScissorTest(true);
|
|
59612
59613
|
this._renderer.setClearColor(0, 0);
|
|
59613
59614
|
this._renderer.clear();
|
|
59614
59615
|
this._renderer.render(this._scene.threeScene, camera2);
|
|
@@ -59625,6 +59626,8 @@ class GpuPicker {
|
|
|
59625
59626
|
1,
|
|
59626
59627
|
this._readBuffer
|
|
59627
59628
|
);
|
|
59629
|
+
console.log("GPU Pick buffer:", this._readBuffer[0], this._readBuffer[1], this._readBuffer[2], this._readBuffer[3]);
|
|
59630
|
+
console.log("GPU Pick screen:", screenPos.x, screenPos.y, "pixel:", pixelX, pixelY, "target:", this._renderTarget.width, "x", this._renderTarget.height);
|
|
59628
59631
|
const depth = this._readBuffer[1];
|
|
59629
59632
|
const normalX = this._readBuffer[2];
|
|
59630
59633
|
const normalY = this._readBuffer[3];
|