Skip to content

Commit

Permalink
Invert Y axis on Position and Scale patchmod so it makes sense.
Browse files Browse the repository at this point in the history
  • Loading branch information
xian committed Aug 30, 2024
1 parent 4715f76 commit 948c80f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class PositionAndScalePatchMod(
// @param scale float
// @return uv-coordinate
vec2 main(vec2 uvIn, vec2 offset, float scale) {
return (uvIn - .5) / scale - -offset + .5;
vec2 offsetAdjusted = vec2(offset.x, 0. - offset.y);
return (uvIn - .5) / scale - -offsetAdjusted + .5;
}
""".trimIndent(),
)
Expand Down

0 comments on commit 948c80f

Please sign in to comment.