From 4957f1c346509b30940371f093139067287b6867 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 18 Dec 2018 20:57:49 +0800 Subject: *shader --- src/libjin/graphics/je_graphic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libjin/graphics/je_graphic.cpp') diff --git a/src/libjin/graphics/je_graphic.cpp b/src/libjin/graphics/je_graphic.cpp index d326823..ef56ef0 100644 --- a/src/libjin/graphics/je_graphic.cpp +++ b/src/libjin/graphics/je_graphic.cpp @@ -96,8 +96,8 @@ namespace JinEngine float sly = slice.y / mSize.h; float slw = slice.w / mSize.w; float slh = slice.h / mSize.h; - textureCoords[0] = slx; textureCoords[1] = sly; - textureCoords[2] = slx; textureCoords[3] = sly + slh; + textureCoords[0] = slx; textureCoords[1] = sly; + textureCoords[2] = slx; textureCoords[3] = sly + slh; textureCoords[4] = slx + slw; textureCoords[5] = sly + slh; textureCoords[6] = slx + slw; textureCoords[7] = sly; -- cgit v1.1-26-g67d0