Geometries now automatically use per-vertex colors when drawing if any vertex has a custom color set, otherwise the constant color is used.

Still not a perfect solution, but it works better than before
This commit is contained in:
Alex Szpakowski
2013-04-23 23:25:45 -07:00
parent a5eaffe625
commit 3b05ec0635
7 changed files with 78 additions and 41 deletions
@@ -90,6 +90,9 @@ int w_Geometry_setVertex(lua_State *L)
return luaL_error(L, e.what());
}
if (lua_gettop(L) > 6)
geom->setVertexColors(true);
return 0;
}