mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-24 21:12:50 +01:00
30 lines
566 B
Lua
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
|
|
|