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 97e6e67 commit 7a4dd73Copy full SHA for 7a4dd73
webgl/lessons/ko/webgl-picking.md
@@ -558,8 +558,8 @@ objects.forEach(function(object) {
558
559
const subLeft = left + pixelX * width / gl.canvas.width;
560
const subBottom = bottom + pixelY * height / gl.canvas.height;
561
- const subWidth = 1 / gl.canvas.width;
562
- const subHeight = 1 / gl.canvas.height;
+ const subWidth = width / gl.canvas.width;
+ const subHeight = height / gl.canvas.height;
563
564
// 해당 1픽셀에 대한 절두체 만들기
565
const projectionMatrix = m4.frustum(
0 commit comments