--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
--  Spring LUA model file (V1.0)
--
--  created by trepan's obj2lua.lua
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
--  filename:    colors.obj
--  objects:     1
--  triangles:   6
--  materials:   2
--  vertices:    5
--  texcoorcds:  4
--  normals:     1
--  colors:      5
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

local mtls = {}
mtls["sides"] = {
  name      = "sides",
  texture   = "mesh.png",
  ambient   = { 1.000000, 1.000000, 1.000000, 1.000000 },
  diffuse   = { 1.000000, 1.000000, 1.000000, 0.750000 },
  emission  = { 0.000000, 0.000000, 0.000000, 1.000000 },
  specular  = { 1.000000, 1.000000, 1.000000, 1.000000 },
  shininess = 128,
  lighting  = false
}
mtls["bottom"] = {
  name      = "bottom",
  texture   = "players.png",
  ambient   = { 1.000000, 1.000000, 1.000000, 1.000000 },
  diffuse   = { 1.000000, 1.000000, 1.000000, 0.750000 },
  emission  = { 0.000000, 0.000000, 0.000000, 1.000000 },
  specular  = { 1.000000, 1.000000, 1.000000, 1.000000 },
  shininess = 128,
  lighting  = true
}

--------------------------------------------------------------------------------

local v = {}
v[1] = { 0.000000, 1.000000, 0.000000 }
v[2] = { -1.000000, 0.000000, 0.000000 }
v[3] = { 1.000000, 0.000000, 0.000000 }
v[4] = { 0.000000, 0.000000, -1.000000 }
v[5] = { 0.000000, 0.000000, 1.000000 }

--------------------------------------------------------------------------------

local t = {}
t[1] = { 0.000000, 0.000000 }
t[2] = { 1.000000, 0.000000 }
t[3] = { 1.000000, 1.000000 }
t[4] = { 0.000000, 1.000000 }

--------------------------------------------------------------------------------

local n = {}
n[1] = { 0.000000, 1.000000, 0.000000 }

--------------------------------------------------------------------------------

local c = {}
c[1] = { 1.000000, 1.000000, 1.000000, 1.000000 }
c[2] = { 1.000000, 0.000000, 0.000000, 0.500000 }
c[3] = { 0.000000, 1.000000, 0.000000, 0.500000 }
c[4] = { 0.000000, 0.000000, 1.000000, 0.500000 }
c[5] = { 1.000000, 1.000000, 0.000000, 0.500000 }

--------------------------------------------------------------------------------

local objs = {}
objs[1] = {  --  6 tris
  name = "",
  mats = {
    ["sides"] = {
      {{1,0,1,1}, {2,0,1,2}, {5,0,1,5}},
      {{1,0,1,1}, {5,0,1,5}, {3,0,1,3}},
      {{1,0,1,1}, {3,0,1,3}, {4,0,1,4}},
      {{1,0,1,1}, {4,0,1,4}, {2,0,1,2}},
    },
    ["bottom"] = {
      {{2,4,1,2}, {4,3,1,4}, {3,2,1,3}, {5,1,1,5}},
    },
  }
}

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

local exts = {
  xmin = -1,
  xmax = 1,
  ymin = 0,
  ymax = 1,
  zmin = -1,
  zmax = 1
}

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

return "1.0", objs, mtls, v, t, n, c, exts

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
--  filename:    colors.obj
--  objects:     1
--  triangles:   6
--  materials:   2
--  vertices:    5
--  texcoorcds:  4
--  normals:     1
--  colors:      5
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
