//////////////////////////////////////////
// Shader for DC_CAGE1_FRONT (DEATHCOW)
//////////////////////////////////////////

// This is the shader to make the monster's eyes move for Deathcow's monster cage
// Thanks to Karloff for his help!

textures/mapcent_crate/dc_monster1
{
//qer_editorimage map textures/mapcent_crate/dc_monster1.tga

	{
		clampmap textures/mapcent_crate/dc_cage1_eyes.tga
		rgbGen wave inversesawtooth 0.1 15 0 0.25 
		tcMod stretch triangle 1 0.1 0 0.1 
		tcMod turb 0 0.01 0 0.05
	}
	{
		map textures/mapcent_crate/dc_cage1_front.tga
		blendfunc blend
		rgbGen identity
		depthWrite
		alphaFunc GT0
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		depthFunc equal
	}
}
//////////////////////////////////////////
// Shaders for Crates by HuGo the ClOwN
//////////////////////////////////////////

textures/mapcent_crate/htc_box2
{
//qer_editorimage mapcent_crate/htc_box2.tga

	{
		map textures/effects/tinfx.tga
		rgbGen identity
		tcGen environment 
	}
	{
		map textures/mapcent_crate/htc_box2.tga
		blendfunc blend
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc gl_dst_color gl_one_minus_dst_alpha
		rgbGen identity
		tcGen lightmap 
	}
}

textures/mapcent_crate/htc_toxic
{
	{
		map textures/effects/tinfx.tga
		rgbGen identity
		tcGen environment 
	}
	{
		map textures/mapcent_crate/htc_toxic.tga
		blendfunc blend
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc gl_dst_color gl_one_minus_dst_alpha
		rgbGen identity
		tcGen lightmap 
	}
}

textures/mapcent_crate/htc_toxic2
{
	{
		map textures/effects/tinfx.tga
		rgbGen identity
		tcGen environment 
	}
	{
		map textures/mapcent_crate/htc_toxic2.tga //added htc_
		blendfunc blend
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc gl_dst_color gl_one_minus_dst_alpha
		rgbGen identity
		tcGen lightmap 
	}
}

//////////////////////////////////////////
// Shaders for Sc4r4b's XCrate
//////////////////////////////////////////

textures/mapcent_crate/sc4_xcrate_side
{
	q3map_lightimage textures/mapcent_crate/sc4_xcrate_side_fx.tga
	surfaceparm nomarks
	q3map_lightsubdivide 55
	q3map_surfacelight 85
	{
		map $lightmap 
		rgbGen identity
		tcGen lightmap 
	}
	{
		map textures/mapcent_crate/sc4_xcrate_side.tga
		blendfunc filter
		rgbGen identity
	}
	{
		map textures/mapcent_crate/sc4_xcrate_side_fx.tga
		blendfunc add
		rgbGen wave sawtooth 0.4 1 3 3.6 
	}
}

textures/mapcent_crate/sc4_xcrate_top
{
	q3map_lightimage textures/mapcent_crate/sc4_xcrate_top_fx.tga
	surfaceparm nomarks
	q3map_lightsubdivide 55
	q3map_surfacelight 85
	{
		map $lightmap 
		rgbGen identity
		tcGen lightmap 
	}
	{
		map textures/mapcent_crate/sc4_xcrate_top.tga  //added sc4_
		blendfunc filter
		rgbGen identity
	}
	{
		map textures/mapcent_crate/sc4_xcrate_top_fx.tga //added sc4_
		blendfunc add
		rgbGen wave sawtooth 0.4 1 3 3.6 
	}
}


