diff options
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-x | js/lib/geom/rectangle.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js index ac8e6c70..91729c8e 100755 --- a/js/lib/geom/rectangle.js +++ b/js/lib/geom/rectangle.js | |||
@@ -1030,7 +1030,7 @@ RectangleFill.getVertex = function( index ) { | |||
1030 | 1030 | ||
1031 | RectangleFill.getUV = function( x, y, xMin, w, yMin, h) { | 1031 | RectangleFill.getUV = function( x, y, xMin, w, yMin, h) { |
1032 | var u = (x - xMin)/w, | 1032 | var u = (x - xMin)/w, |
1033 | v = (y - yMin)/h; | 1033 | v = 1.0 - (y - yMin)/h; |
1034 | 1034 | ||
1035 | var uv = [ u, v ]; | 1035 | var uv = [ u, v ]; |
1036 | return uv; | 1036 | return uv; |