MineOS/lib/OpenComputersGL/Materials.lua
Igor Timofeev 32c2275290 Такс
2017-01-04 07:10:20 +03:00

30 lines
566 B
Lua

local materials = {}
------------------------------------------------------------------------------------------------------------------------
materials.types = {
textured = 1,
solid = 2,
}
function materials.newSolidMaterial(color)
return {
type = materials.types.solid,
color = color
}
end
function materials.newTexturedMaterial(texture)
return {
type = materials.types.textured,
texture = texture
}
end
------------------------------------------------------------------------------------------------------------------------
return materials