|
|
@@ -9678,6 +9678,46 @@ static int Polycore_delete_ScreenSprite(lua_State *L) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static int Polycore_LocalShaderParam_get_name(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ LocalShaderParam *inst = (LocalShaderParam*)lua_topointer(L, 1);
|
|
|
+ lua_pushstring(L, inst->name.c_str());
|
|
|
+ return 1;
|
|
|
+}
|
|
|
+
|
|
|
+static int Polycore_LocalShaderParam_set_name(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ LocalShaderParam *inst = (LocalShaderParam*)lua_topointer(L, 1);
|
|
|
+ String param = lua_tostring(L, 2);
|
|
|
+ inst->name = param;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int Polycore_LocalShaderParam_setNumber(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ LocalShaderParam *inst = (LocalShaderParam*)lua_topointer(L, 1);
|
|
|
+ luaL_checktype(L, 2, LUA_TNUMBER);
|
|
|
+ Number n = lua_tonumber(L, 2);
|
|
|
+ inst->setNumber(n);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int Polycore_LocalShaderParam_setVector3(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ LocalShaderParam *inst = (LocalShaderParam*)lua_topointer(L, 1);
|
|
|
+ luaL_checktype(L, 2, LUA_TLIGHTUSERDATA);
|
|
|
+ Vector3 v = *(Vector3*)lua_topointer(L, 2);
|
|
|
+ inst->setVector3(v);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int Polycore_delete_LocalShaderParam(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ LocalShaderParam *inst = (LocalShaderParam*)lua_topointer(L, 1);
|
|
|
+ delete inst;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static int Polycore_Shader_get_numSpotLights(lua_State *L) {
|
|
|
luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
Shader *inst = (Shader*)lua_topointer(L, 1);
|
|
|
@@ -9929,6 +9969,28 @@ static int Polycore_ShaderBinding_addLocalParam(lua_State *L) {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static int Polycore_ShaderBinding_addLocalParamNumber(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ ShaderBinding *inst = (ShaderBinding*)lua_topointer(L, 1);
|
|
|
+ luaL_checktype(L, 2, LUA_TSTRING);
|
|
|
+ String name = String(lua_tostring(L, 2));
|
|
|
+ luaL_checktype(L, 3, LUA_TNUMBER);
|
|
|
+ Number n = lua_tonumber(L, 3);
|
|
|
+ inst->addLocalParamNumber(name, n);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int Polycore_ShaderBinding_addLocalParamVector3(lua_State *L) {
|
|
|
+ luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
+ ShaderBinding *inst = (ShaderBinding*)lua_topointer(L, 1);
|
|
|
+ luaL_checktype(L, 2, LUA_TSTRING);
|
|
|
+ String name = String(lua_tostring(L, 2));
|
|
|
+ luaL_checktype(L, 3, LUA_TLIGHTUSERDATA);
|
|
|
+ Vector3 v = *(Vector3*)lua_topointer(L, 3);
|
|
|
+ inst->addLocalParamVector3(name, v);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static int Polycore_delete_ShaderBinding(lua_State *L) {
|
|
|
luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
|
|
|
ShaderBinding *inst = (ShaderBinding*)lua_topointer(L, 1);
|