File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1883,6 +1883,10 @@ class RenderWebGL extends EventEmitter {
1883
1883
// *Not* Scratch Space-- +y is bottom
1884
1884
// Loop over all rows of pixels, starting at the top
1885
1885
for ( let y = 0 ; y < height ; y ++ ) {
1886
+ // See comment in Drawable.getLocalPosition for why we're adding 0.5 here.
1887
+ // Essentially, _pixelPos is supposed to be in "texture space", and "texture space" positions are offset
1888
+ // by 0.5. Notice that we're calling drawable.skin.isTouchingLinear (operates in texture space)
1889
+ // and not drawable.isTouching (operates in Scratch space).
1886
1890
_pixelPos [ 1 ] = ( y + 0.5 ) / height ;
1887
1891
1888
1892
// We start at the leftmost point, then go rightwards until we hit an opaque pixel
You can’t perform that action at this time.
0 commit comments