We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4dd73 commit 01ebf7dCopy full SHA for 01ebf7d
webgl/lessons/webgl-picking.md
@@ -634,8 +634,8 @@ objects.forEach(function(object) {
634
635
const subLeft = left + pixelX * width / gl.canvas.width;
636
const subBottom = bottom + pixelY * height / gl.canvas.height;
637
- const subWidth = 1 / gl.canvas.width;
638
- const subHeight = 1 / gl.canvas.height;
+ const subWidth = width / gl.canvas.width;
+ const subHeight = height / gl.canvas.height;
639
640
// make a frustum for that 1 pixel
641
const projectionMatrix = m4.frustum(
0 commit comments