aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/rectangle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-xjs/lib/geom/rectangle.js2
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
1031RectangleFill.getUV = function( x, y, xMin, w, yMin, h) { 1031RectangleFill.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;