aboutsummaryrefslogtreecommitdiff
path: root/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/embed/graphics.lua.h2
-rw-r--r--src/lua/modules/graphics/je_lua_graphics.cpp4
-rw-r--r--src/lua/modules/mouse/je_lua_mouse.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/embed/graphics.lua.h b/src/lua/embed/graphics.lua.h
index b2a19b5..671cacd 100644
--- a/src/lua/embed/graphics.lua.h
+++ b/src/lua/embed/graphics.lua.h
@@ -17,7 +17,7 @@ Vertex vert(Vertex v)
Color frag(Color col, Texture tex, Vertex v)
{
- return col * texel(tex, v.uv);
+ return col;
}
#END_FRAGMENT_SHADER
diff --git a/src/lua/modules/graphics/je_lua_graphics.cpp b/src/lua/modules/graphics/je_lua_graphics.cpp
index a2157b6..6324e00 100644
--- a/src/lua/modules/graphics/je_lua_graphics.cpp
+++ b/src/lua/modules/graphics/je_lua_graphics.cpp
@@ -196,7 +196,7 @@ namespace JinEngine
AssetDatabase* fs = AssetDatabase::get();
if (!fs->exists(path))
{
- error(L, "No such shader file \"%s\"\n", path);
+ error(L, "No such shader file \"%s\"", path);
luax_pushnil(L);
return 1;
}
@@ -623,7 +623,7 @@ namespace JinEngine
AssetDatabase* fs = AssetDatabase::get();
if (!fs->exists(path))
{
- error(L, "No such font %s\n", path);
+ error(L, "No such font \"%s\"", path);
luax_pushnil(L);
return 1;
}
diff --git a/src/lua/modules/mouse/je_lua_mouse.cpp b/src/lua/modules/mouse/je_lua_mouse.cpp
index 88638d2..d6c84e7 100644
--- a/src/lua/modules/mouse/je_lua_mouse.cpp
+++ b/src/lua/modules/mouse/je_lua_mouse.cpp
@@ -28,9 +28,9 @@ namespace JinEngine
}
LUA_IMPLEMENT const luaL_Reg f[] = {
- { "position", l_pos },
- { "setVisible", l_setVisible },
- { 0, 0 }
+ { "getPosition", l_pos },
+ { "setVisible", l_setVisible },
+ { 0, 0 }
};
LUA_EXPORT int luaopen_mouse(lua_State* L)