------ All content © 2008 DigiPen (USA) Corporation, all rights reserved. ------
-- Author: Matt Anderson
-- Updated: 02/16/2009

--------------------------------------------------------------------------------
-- load materials

Global:AddMaterial( 
	"SHADER", "../../Assets/Shaders/gNentity",
	1,
	"gNentity"
)

Global:AddMaterial(
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celGreen.bmp",
	"SHADER",  "../../Assets/Shaders/gSingleTexture",
	3,
	"gFlat"
)

Global:AddMaterial(
	"UNIFORM", "2 Normal",
	"TEXTURE", "2 ../../Assets/Textures/smoothedgemossbump.bmp",
	"UNIFORM", "1 Color1",
	"TEXTURE", "1 ../../Assets/Textures/allslides2.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celCream.bmp",
	"SHADER",  "../../Assets/Shaders/gSingleEyeBump",
	7,
	"gSlide"	
)

Global:AddMaterial(
	"UNIFORM", "1 Color1",
	"TEXTURE", "1 ../../Assets/Textures/lanternMaybe.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celGreen.bmp",
	"SHADER",  "../../Assets/Shaders/gSingleEyeLightTexture",
	5,
	"gLantern"
)

Global:AddMaterial(
	"UNIFORM", "1 Color1",
	"TEXTURE", "1 ../../Assets/Textures/aster05.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celCream.bmp",
	"SHADER",  "../../Assets/Shaders/gSingleEyeLightTexture",
	5,
	"gAster"
)

-- skipping gAsterSkinned. nothing skinned

Global:AddMaterial(
	"UNIFORM", "1 Normal",
	"TEXTURE", "1 ../../Assets/Textures/ground0102bump.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celVine.bmp",
	"SHADER",  "../../Assets/Shaders/gFlatEyeBump",
	5,
	"gVine"
)

Global:AddMaterial(
	"UNIFORM", "1 Normal",
	"TEXTURE", "1 ../../Assets/Textures/ground0102bump.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celCream.bmp",
	"SHADER",  "../../Assets/Shaders/gFlatEyeBump",
	5,
	"gMoon"
)

Global:AddMaterial(
	"UNIFORM", "2 Normal",
	"TEXTURE", "2 ../../Assets/Textures/ground0102bump.bmp",
	"UNIFORM", "1 Color1",
	"TEXTURE", "1 ../../Assets/Textures/spot.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celCream.bmp",--[[--]]
	"SHADER",  "../../Assets/Shaders/gZoomallax",
	7,
	"gGroundGrass"
)

Global:AddMaterial(
	"CAMERADATA", "0 3",
	"UNIFORM",    "1 Distance",
	"TEXTURE",    "1 ../../Assets/Textures/leaf.bmp",
	"UNIFORM",    "0 Color0",
	"TEXTURE",    "0 ../../Assets/Textures/groundgrass01.bmp",
	"SHADER",     "../../Assets/Shaders/gGrass",
	6,
	"gGrass"
)

Global:AddMaterial(
	"UNIFORM",    "2 Normal",
	"TEXTURE",    "2 ../../Assets/Textures/ground0102bump.bmp",
	"UNIFORM",    "1 Color1",
	"TEXTURE",    "1 ../../Assets/Textures/test3.bmp",
	"UNIFORM",    "0 Color0",
	"TEXTURE",    "0 ../../Assets/Textures/celRed.bmp",
	"SHADER",     "../../Assets/Shaders/gZoomallax",
	7,
	"gFirefly"
)

Global:AddMaterial(
	"UNIFORM", "3 Normal",
	"TEXTURE", "3 ../../Assets/Textures/ground0102bump.bmp",
	"UNIFORM", "2 Height",
	"TEXTURE", "2 ../../Assets/Textures/ground0102justbump.bmp",
	"UNIFORM", "1 Color1",
	"TEXTURE", "1 ../../Assets/Textures/cavemoss.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celGreen.bmp",
	"SHADER",  "../../Assets/Shaders/gTriPlanarProjectionEyeLightTexture",
	9,
	"gGround"
)

Global:AddMaterial(
	"UNIFORM", "2 Normal",
	"TEXTURE", "2 ../../Assets/Textures/ground0102bump.bmp",
	"UNIFORM", "1 Color1",
	"TEXTURE", "1 ../../Assets/Textures/paintsky.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/celCream.bmp",
	"SHADER",  "../../Assets/Shaders/gSky",
	7,
	"gSky"
)

Global:AddMaterial(
    "ALPHATEST", "0.2",
	"BLEND", "Additive",
	"CAMERADATA", "0 3",
	"UNIFORM", "1 Distance",
	"TEXTURE", "1 ../../Assets/Textures/parRound.bmp",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/test2.bmp",
	"SHADER",  "../../Assets/Shaders/gTriParticle",
	8,
	"gFireflyParticle"
)

Global:AddMaterial(
	"ALPHATEST", "0.2",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/dplogo.bmp",
	"SHADER",  "../../Assets/Shaders/gSingleTexture",
	4,
	"gDPLogo"
)

Global:AddMaterial(
	"ALPHATEST", "0.2",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/dsmtitle.png",
	"SHADER",  "../../Assets/Shaders/gSingleTexture",
	4,
	"gDSMTitle"
)

Global:AddMaterial(
	"ALPHATEST", "0.2",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/PauseMenu.png",
	"SHADER",  "../../Assets/Shaders/gSingleTexture",
	4,
	"gPauseMenu"
)

Global:AddMaterial(
	"ALPHATEST", "0.2",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/PopupMessages.png",
	"SHADER",  "../../Assets/Shaders/gSingleTexture",
	4,
	"gPopupMenu"
)

Global:AddMaterial(
	"ALPHATEST", "0.2",
	"TIMER",   "0.002",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/submergedLogo.png",
	"SHADER",  "../../Assets/Shaders/gSingleTextureWiggle",
	5,
	"gTitle"
)

Global:AddMaterial(
	"UNIFORM", "2 Position",
	"UNIFORM", "1 Normal",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/defer3",
	4,
	"Defer"
)

--remember, this is actually set in materialMin.xml, since needed immediately.
Global:AddMaterial(
	"UNIFORM", "2 Position",
	"UNIFORM", "1 Normal",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/lplight",
	4,
	"lPointLight"
)

Global:AddMaterial(
    "TIMER",   "0.0002",
    "UNIFORM", "4 Normal1",
    "TEXTURE", "4 ../../Assets/Textures/waterWaves.bmp",
    "UNIFORM", "3 Color1",
    "TEXTURE", "3 ../../Assets/Textures/crapmoon.bmp",
	"UNIFORM", "2 Position",
	"UNIFORM", "1 Normal",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/lplight",
	9,
	"lWater"
)

Global:AddMaterial(
	"UNIFORM", "0 Color0",
	"SHADER",   "../../Assets/Shaders/light1",
	2,
	"LightAccum"
)

Global:AddMaterial(
    "ALPHATEST", "0.4",
	"UNIFORM", "0 Color0",
	"TEXTURE", "0 ../../Assets/Textures/font.bmp",
	"SHADER",  "../../Assets/Shaders/text",
	4,
	"Text"
)

-- Material collection example. appears to be working.
--[[
Global:AddMaterialCollection(
	"gVine", "whatthehell",
	"gFirefly", "andwhynot",
	2,
	"gAster"
)
--]]