Skip to content

Commit 7681c38

Browse files
committed
Add eps to y position as well
1 parent 2981a3b commit 7681c38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/point.vs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void main() {
2929
float stateRowIndex = floor((stateIndex + eps) / stateTexRes);
3030
vec2 stateTexIndex = vec2(
3131
(stateIndex / stateTexRes) - stateRowIndex + eps,
32-
stateRowIndex / stateTexRes
32+
stateRowIndex / stateTexRes + eps
3333
);
3434

3535
vec4 state = texture2D(stateTex, stateTexIndex);
@@ -53,7 +53,7 @@ void main() {
5353

5454
vec2 colorTexIndex = vec2(
5555
(colorLinearIndex / colorTexRes) - colorRowIndex + eps,
56-
colorRowIndex / colorTexRes
56+
colorRowIndex / colorTexRes + eps
5757
);
5858

5959
color = texture2D(colorTex, colorTexIndex);

0 commit comments

Comments
 (0)