aboutsummaryrefslogtreecommitdiff
path: root/src/libjin-lua/embed/scripts/graphics/graphics.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-21 11:38:58 +0800
committerchai <chaifix@163.com>2018-12-21 11:38:58 +0800
commit3cc95933d9267fdb3eb4e0b31034d49c34427446 (patch)
treecaa00a7caf4f1428d7fd170937fbc3560607f6b6 /src/libjin-lua/embed/scripts/graphics/graphics.lua
parentc84a6761e600d4ec6ce7b921fa4b54918c7ddb25 (diff)
*游戏根目录
Diffstat (limited to 'src/libjin-lua/embed/scripts/graphics/graphics.lua')
-rw-r--r--src/libjin-lua/embed/scripts/graphics/graphics.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libjin-lua/embed/scripts/graphics/graphics.lua b/src/libjin-lua/embed/scripts/graphics/graphics.lua
index 859e29b..a0efe03 100644
--- a/src/libjin-lua/embed/scripts/graphics/graphics.lua
+++ b/src/libjin-lua/embed/scripts/graphics/graphics.lua
@@ -90,18 +90,18 @@ local function compileBuiltInShaders()
#END_FRAGMENT_SHADER
]]
jg.Shaders.Shape = jg.newShader[[
- #VERTEX_SHADER
- Vertex vert(Vertex v)
- {
- return v;
- }
- #END_VERTEX_SHADER
- #FRAGMENT_SHADER
- Color frag(Color col, Texture tex, Vertex v)
- {
- return col;
- }
- #END_FRAGMENT_SHADER
+ #VERTEX_SHADER
+ Vertex vert(Vertex v)
+ {
+ return v;
+ }
+ #END_VERTEX_SHADER
+ #FRAGMENT_SHADER
+ Color frag(Color col, Texture tex, Vertex v)
+ {
+ return col;
+ }
+ #END_FRAGMENT_SHADER
]]
jg.Shaders.Default = jg.newShader[[
#VERTEX_SHADER
@@ -128,13 +128,13 @@ jg.init = function(setting)
initialized = _init(setting)
if initialized then
compileBuiltInShaders()
- jg.useShader(jg.Shaders.Default)
+ jg.useShader(jg.Shaders.Font)
end
return initialized
end
jg.unuseShader = function()
- jg.useShader(jg.Shaders.Default)
+ jg.useShader(jg.Shaders.Font)
end
-- Reset all attributes to default value.