diff options
author | chai <chaifix@163.com> | 2018-10-14 22:52:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-14 22:52:40 +0800 |
commit | b1bbc998960fff2169dc5a992c47d08723472f9b (patch) | |
tree | 220f3bd5de2266e248884e11161dd715d7632ef2 /src/lua/embed/graphics.lua.h | |
parent | fbf989f9950a38566e0fb0fc5b6a7aebc9f0fb45 (diff) |
*直接渲染字符串
Diffstat (limited to 'src/lua/embed/graphics.lua.h')
-rw-r--r-- | src/lua/embed/graphics.lua.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) |