From b1bbc998960fff2169dc5a992c47d08723472f9b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 14 Oct 2018 22:52:40 +0800 Subject: =?UTF-8?q?*=E7=9B=B4=E6=8E=A5=E6=B8=B2=E6=9F=93=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/embed/graphics.lua.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lua/embed/graphics.lua.h') diff --git a/src/lua/embed/graphics.lua.h b/src/lua/embed/graphics.lua.h index 1bad4f5..288d2f4 100644 --- a/src/lua/embed/graphics.lua.h +++ b/src/lua/embed/graphics.lua.h @@ -17,11 +17,12 @@ Vertex vert(Vertex v) Color frag(Color col, Texture tex, Vertex v) { - return col; + return col * texel(tex, v.uv); } #END_FRAGMENT_SHADER ]] + local _init = jin.graphics.init jin.graphics.init = function(setting) -- cgit v1.1-26-g67d0