mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user