diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-27 22:42:57 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-27 22:42:57 -0400 |
| commit | 6cf098e3450ba99c238cf0499c6cecaa246f4d50 (patch) | |
| tree | 175b84e32a3cf24f3fb7356825827f6611bab1ed /src/client/lua_api/scene/imesh.cpp | |
| parent | 2831e232b886c5e3b0791ea5192f9e5194e6abf3 (diff) | |
| download | brokengine-6cf098e3450ba99c238cf0499c6cecaa246f4d50.tar.gz brokengine-6cf098e3450ba99c238cf0499c6cecaa246f4d50.tar.bz2 brokengine-6cf098e3450ba99c238cf0499c6cecaa246f4d50.zip | |
Fixed the procedural textures
Procedural textures are now completely working.
Diffstat (limited to 'src/client/lua_api/scene/imesh.cpp')
| -rw-r--r-- | src/client/lua_api/scene/imesh.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/client/lua_api/scene/imesh.cpp b/src/client/lua_api/scene/imesh.cpp index f391431..2760067 100644 --- a/src/client/lua_api/scene/imesh.cpp +++ b/src/client/lua_api/scene/imesh.cpp @@ -91,19 +91,19 @@ int newiscenecube(lua_State* L){//{v3 size}, {v3 origin} } // self:setMaterial("path/to/material") -int iscenesetmaterial(lua_State* L){//self,"path/to" - ISceneNode* node = (IMeshSceneNode*)lua_touserdata(L,-2); - const char* s = lua_tostring(L,-1); - //ISceneNode* i = toiscenenode(L,1)->n; - //const char* s = luaL_optstring(L,2,"error.png"); - //printf("Setting material to %s",s); - - IVideoDriver* driver = device->getVideoDriver(); - node->setMaterialTexture(0, driver->getTexture(s)); - - lua_pop(L,2); - return 0; -} +//int iscenesetmaterial(lua_State* L){//self,"path/to" + //ISceneNode* node = (IMeshSceneNode*)lua_touserdata(L,-2); + //const char* s = lua_tostring(L,-1); + ////ISceneNode* i = toiscenenode(L,1)->n; + ////const char* s = luaL_optstring(L,2,"error.png"); + ////printf("Setting material to %s",s); + + //IVideoDriver* driver = device->getVideoDriver(); + //node->setMaterialTexture(0, driver->getTexture(s)); + + //lua_pop(L,2); + //return 0; +//} static const luaL_reg imesh_m[] = { {"setMaterial", iscenesetmaterial}, |
