--
--	All post processing effects in one place. Shared by all render settings
--

Global:AddMaterial(
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "ScreenWidth",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/gaussianBlurHorz",
	4,
	"pBlurHorz"
)

Global:AddMaterial(
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "ScreenWidth",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/gaussianBlurVert",
	4,
	"pBlurVert"
)

Global:AddMaterial(
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "ScreenWidth",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/gaussianLogBlurHorz",
	4,
	"pLogBlurHorz"
)

Global:AddMaterial(
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "ScreenWidth",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/gaussianLogBlurVert",
	4,
	"pLogBlurVert"
)

Global:AddMaterial(
	--"TIMER", "0.00002",
	"UNIFORM", "1 Position",
	"UNIFORM", "2 Color1",
	"UNIFORM", "0 Color0",
	"UNIFORM", "3 Fade",
	"TEXTURE", "3 ../../Assets/Textures/fadeIn.bmp",
	"GAMEINFO", "FocalDistance",
	"GAMEINFO", "FadeAmount",
	"GAMEINFO", "ScreenWidth",
	"GAMEINFO", "ScreenHeight",
	"SHADER",  "../../Assets/Shaders/pGritty2",
	10,
	"pWeAreGears"
)

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

Global:AddMaterial(
	"UNIFORM", "0 Color0",
	"UNIFORM", "1 Color1",
	"SHADER", "../../Assets/Shaders/pAdd",
	3,
	"pAdd"
)

Global:AddMaterial(
    "GAMEINFO", "InvTanHalfFOV",
    "GAMEINFO", "ScreenWidth",
    "GAMEINFO", "ScreenHeight",
	"UNIFORM", "2 Falloff",
	"TEXTURE", "2 ../../Assets/Textures/spot.bmp",
	"UNIFORM", "1 Position",
	"UNIFORM", "0 Color0",
	"GAMEINFO", "MotionMatrix",
	"SHADER", "../../Assets/Shaders/pMotionBlur",
	9,
	"pMotionBlur"
)

Global:AddMaterial(
    "GAMEINFO", "ScreenHeight",
    "GAMEINFO", "ScreenWidth",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/pSobelAdd",
	4,
	"pAdditiveSobel"
)

Global:AddMaterial(
	"UNIFORM", "0 Color0",
	"GAMEINFO", "ScreenWidth",
	"GAMEINFO", "ScreenHeight",
	"SHADER", "../../Assets/Shaders/pDownsample",
	4,
	"pDownsample"
)

Global:AddMaterial(
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/pFeedback",
	"BLEND", "PreMultipliedAlpha",
	2,
	"pFeedbacker"
)

Global:AddMaterial(
    "GAMEINFO", "InvTanHalfFOV",
    "GAMEINFO", "ScreenHeight",
    "GAMEINFO", "ScreenWidth",
    --"UNIFORM", "4 Color0",
	"UNIFORM", "3 Reflection",
	"TEXTURE", "3 ../../Assets/Textures/randomVectors.bmp",
	--"UNIFORM", "2 Falloff",
	--"TEXTURE", "2 ../../Assets/Textures/spot2.bmp",
	"UNIFORM", "0 Normal",
	"UNIFORM", "1 Shadow",
	"SHADER", "../../Assets/Shaders/pSSAO",
	8,
	"pAmbientOcclusion"
)

Global:AddMaterial(
    "GAMEINFO", "InvTanHalfFOV",
    "GAMEINFO", "ScreenHeight",
    "GAMEINFO", "ScreenWidth",
    "UNIFORM", "2 Reflection",
	"TEXTURE", "2 ../../Assets/Textures/randomVectors.bmp",
	"UNIFORM", "0 Color0",
	"UNIFORM", "1 Normal",
	"SHADER", "../../Assets/Shaders/pIndirectLight",
	8,
	"pIndirectLight"
)

Global:AddMaterial(
	"GAMEINFO", "ScreenWidth",
	"GAMEINFO", "ScreenHeight",
	"UNIFORM", "0 Color0",
	"SHADER", "../../Assets/Shaders/pBoxBlur",
	4,
	"pBoxBlur"
)

Global:AddMaterial(
    "GAMEINFO", "InvTanHalfFOV",
    "GAMEINFO", "ScreenWidth",
    "GAMEINFO", "ScreenHeight",
    "UNIFORM", "0 Color0",
    "UNIFORM", "1 Normal",
    "UNIFORM", "2 Reflection",
    "TEXTURE", "2 ../../Assets/Textures/randomVectors.bmp",
	"SHADER", "../../Assets/Shaders/pSSAO4",
	8,
	"pSSAO4"
)

Global:AddMaterial(
  "GAMEINFO", "ScreenWidth",
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "BlendFour",
  "UNIFORM",  "0 Color0",
  "TEXTURE",  "0 ../../Assets/Textures/introSlides0.png",
  "SHADER",   "../../Assets/Shaders/pBlend4Overlay",
  6,
  "pIntroSlides0"
)

Global:AddMaterial(
  "GAMEINFO", "ScreenWidth",
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "BlendFour",
  "UNIFORM",  "0 Color0",
  "TEXTURE",  "0 ../../Assets/Textures/midtroSlides0.png",
  "SHADER",   "../../Assets/Shaders/pBlend4Overlay",
  6,
  "pMidSlides0"
)

Global:AddMaterial(
  "GAMEINFO", "ScreenWidth",
  "GAMEINFO", "ScreenHeight",
  "GAMEINFO", "BlendFour",
  "UNIFORM",  "0 Color0",
  "TEXTURE",  "0 ../../Assets/Textures/outroSlides0.png",
  "SHADER",   "../../Assets/Shaders/pBlend4Overlay",
  6,
  "pOutroSlides0"
)  