// ** Updated April 1st 12:05 am by Casey
// ** Original Threewave Shaders in new Dir **
// ** Edited to remove alpha blended textures that weren't used ** 
// ** several ironcross lights added from q3 shaders to reflect the new path **

// modified tonguebone - blacktongue owns j00! 
textures/ctf_q3w/blacktongue
{
	qer_editorimage textures/ctf_q3w/blacktongue.tga

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/blacktongue.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/blacktongue_glow.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 0.5 0.5 0 0.2
	}
}

textures/ctf_q3w/grateclip
{
	qer_trans 0.40
	qer_editorimage textures/common/clip.tga
	surfaceparm metalsteps	
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodraw
}

textures/ctf_q3w/clippy
// same as common-clip,... 
// but for some reason clip keeps dissapearing from my editor texture window?
{
	qer_editorimage textures/common/clip.tga
	qer_trans 0.40
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm playerclip
	surfaceparm noimpact
}

textures/ctf_q3w/border11c_r
{
	q3map_surfacelight 200
	q3map_lightimage textures/base_trim/border11c_light.tga
	qer_editorimage textures/ctf_q3w/qer_border11c.tga
	
	{
		map textures/base_trim/border11c.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/base_trim/border11c_light.tga
		blendfunc gl_one gl_one
		rgbgen wave sin 1 .1 0 5
	}
	{
		map textures/ctf_q3w/border11c_pulse1b_r.tga
		blendfunc gl_one gl_one
		tcmod scale .035 1
		tcmod scroll -0.65 0
	}
}

textures/ctf_q3w/border11c_bx
{
	q3map_surfacelight 200
	q3map_lightimage textures/base_trim/border11c_light.tga
	qer_editorimage textures/ctf_q3w/qer_border11c.tga
	
	{
		map textures/base_trim/border11c.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/base_trim/border11c_light.tga
		blendfunc gl_one gl_one
		rgbgen wave sin 1 .1 0 5
	}
	{
		map textures/base_trim/border11c_pulse1b.tga
		blendfunc gl_one gl_one
		tcmod scale .035 1
		tcmod scroll -0.65 0
	}
}

textures/ctf_q3w/xclang_floor2_bouncy_r
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga	
	q3map_surfacelight 150
	qer_editorimage textures/sfx/xclang_floor2_bouncy
	
	{
		map textures/sfx/xclang_floor2_bouncy.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/xclang_floor2_bouncy_b
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga	
	q3map_surfacelight 150
	qer_editorimage textures/sfx/xclang_floor2_bouncy

	{
		map textures/sfx/xclang_floor2_bouncy.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/bouncepad1q1metal7_99_b
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga	
	q3map_surfacelight 1000
	qer_editorimage textures/sfx/bouncepad1q1metal7_99.tga

	{
		map textures/sfx/bouncepad1q1metal7_99.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/bouncepad1q1metal7_99_r
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga	
	q3map_surfacelight 1000
	qer_editorimage textures/sfx/bouncepad1q1metal7_99.tga
	
	{
		map textures/sfx/bouncepad1q1metal7_99.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/metalbridge06_bounce_r
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga	
	q3map_surfacelight 150
	qer_editorimage textures/sfx/metalbridge06_bounce.tga
	
	{
		map textures/sfx/metalbridge06_bounce.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/metalbridge06_bounce_b
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga	
	q3map_surfacelight 150
	qer_editorimage textures/sfx/metalbridge06_bounce.tga
	
	{
		map textures/sfx/metalbridge06_bounce.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/bouncepad01_r_metalbridge06b
{
	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga	
	q3map_surfacelight 400
	qer_editorimage textures/sfx/bouncepad01_metalbridge06b.tga
	
	{
		map textures/sfx/bouncepad01_metalbridge06b.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/bouncepad01_b_metalbridge06b
{

	surfaceparm nodamage
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga	
	q3map_surfacelight 400
	qer_editorimage textures/sfx/bouncepad01_metalbridge06b.tga

	{
		map textures/sfx/bouncepad01_metalbridge06b.tga
		rgbGen identity
	}
	
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	
	{
		map textures/ctf_q3w/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}

	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/clangdark_bounce_r
{
	qer_editorimage textures/sfx/clangdark_bounce.tga
	q3map_lightimage textures/ctf_q3w/jumppadsmall_r.tga	
	q3map_surfacelight 150
	surfaceparm nodamage

	{
		map textures/sfx/clangdark_bounce.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_r.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_r.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/clangdark_bounce_b
{
	qer_editorimage textures/sfx/clangdark_bounce.tga
	q3map_lightimage textures/ctf_q3w/jumppadsmall_b.tga	
	q3map_surfacelight 150
	surfaceparm nodamage

	{
		map textures/sfx/clangdark_bounce.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/bouncepad01b_layer1_b.tga
		blendfunc gl_one gl_one
		rgbGen wave sin .5 .5 0 1.5	
	}
	{
		clampmap textures/ctf_q3w/jumppadsmall_b.tga
		blendfunc gl_one gl_one
		tcMod stretch sin 1.2 .8 0 1.5
		rgbGen wave square .5 .5 .25 1.5
	}
}

textures/ctf_q3w/cas_killsky
{
	qer_editorimage textures/skies/stars.tga
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm sky
	q3map_sun 3 2 2 70 315 40
	q3map_surfacelight 160
	skyparms - 512 -

	{
		map textures/skies/killsky_1.tga
		tcMod scroll 0.05 .1
		tcMod scale 2 2
		depthWrite
	}
	{
		map textures/skies/killsky_2.tga
		blendfunc GL_ONE GL_ONE
		tcMod scroll 0.05 0.06
		tcMod scale 3 2
	}
}

textures/ctf_q3w/border12b_200
{
	q3map_surfacelight 200	
	qer_editorimage textures/base_trim/border12b.tga

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_trim/border12b.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/base_trim/border12bfx.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/xmetal_wall_5b_b
{
	q3map_lightimage textures/sfx/metalfloor_wall_5bglowblu.tga
	q3map_surfacelight 50
	qer_editorimage textures/sfx/metalfloor_wall_5bglowblu.tga

	{
		map textures/ctf_q3w/metalfloor_wall_5b.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/sfx/metalfloor_wall_5bglowblu.tga
		blendfunc gl_one gl_one
		rgbgen wave sin .5 .2 0 .31	
	}
}

textures/ctf_q3w/xmetal_wall_9b_r
{
	q3map_lightimage textures/sfx/metalfloor_wall_9bglow.tga
	q3map_surfacelight 50
	qer_editorimage textures/ctf_q3w/metalfloor_wall_9bglow_x.tga

	{
		map textures/ctf_q3w/metalfloor_wall_5b.tga
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc gl_dst_color gl_zero
	}
	{
		map textures/ctf_q3w/metalfloor_wall_9bglow_x.tga
		blendfunc gl_one gl_one
		rgbgen wave sin .5 .2 0 .3	
	}
}

textures/ctf_q3w/patch10_pj_1k
{
	q3map_surfacelight 1000
	surfaceparm nomarks
	light 1
	qer_editorimage textures/base_light/patch10_pj_lite.tga

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/patch10_pj_lite.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/patch10_pj_lite.blend.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/flameanim_ctf_red
{
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm trans
	cull none
	q3map_surfacelight 2500
	qer_editorimage textures/sfx/flame7.tga
	q3map_lightimage textures/sfx/flame7.tga

	{
		animMap 10 textures/sfx/flame1.tga textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
		
	}	
	{
		animMap 10 textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga textures/sfx/flame1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sawtooth 0 1 0 10
	}	
	{
		map textures/sfx/flameball.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin .6 .2 0 .6	
	}
}

textures/ctf_q3w/flameanim_ctf_blue
{
	qer_editorimage textures/sfx/b_flame7.tga
	q3map_lightimage textures/ctf_q3w/b_flame7bright.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	q3map_surfacelight 3500

	{
		animMap 10 textures/sfx/b_flame1.tga textures/sfx/b_flame2.tga textures/sfx/b_flame3.tga textures/sfx/b_flame4.tga textures/sfx/b_flame5.tga textures/sfx/b_flame6.tga textures/sfx/b_flame7.tga textures/sfx/b_flame8.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
		
	}	
	{
		animMap 10 textures/sfx/b_flame2.tga textures/sfx/b_flame3.tga textures/sfx/b_flame4.tga textures/sfx/b_flame5.tga textures/sfx/b_flame6.tga textures/sfx/b_flame7.tga textures/sfx/b_flame8.tga textures/sfx/b_flame1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sawtooth 0 1 0 10
	}	
}

textures/ctf_q3w/fog_b_256_60
{
	qer_editorimage textures/sfx/xbluelightimage.tga
	q3map_lightimage textures/sfx/xbluelightimage.tga
	q3map_surfacelight 60
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( 0.3 0.3 0.9 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_q3w/fog_r_256_60
{
	qer_editorimage textures/ctf_q3w/hellfog.tga
	q3map_lightimage textures/ctf_q3w/hellfog.tga
	q3map_surfacelight 60
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( .55 .11 .1 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_q3w/fog_grey_256_60
{
	qer_editorimage textures/sfx/xdensegreyfog.tga
	q3map_lightimage textures/sfx/xdensegreyfog.tga
	q3map_surfacelight 60
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nolightmap
	qer_nocarve
	fogparms ( 0.7 0.7 0.7 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_q3w/shuga
{
	surfaceparm trans	
	surfaceparm alphashadow
	surfaceparm nomarks	
	cull none

	{
		map textures/ctf_q3w/shuga.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}

textures/ctf_q3w/hellfog_zoid_ctf1
{
	qer_editorimage textures/ctf_q3w/hellfog.tga
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm nodrop
	surfaceparm nolightmap
	q3map_globaltexture
	q3map_surfacelight 50
	fogparms ( .55 .11 .1 ) 256
	
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}

textures/ctf_q3w/largerblock3b_ow_r
{
	qer_editorimage textures/gothic_floor/largerblock3b_ow.tga

	{
		map textures/sfx/fire_ctfred.tga
		tcmod scroll 0 1
		tcMod turb 0 .25 0 1.6
		tcmod scale 4 4
		blendFunc GL_ONE GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_floor/largerblock3b_ow.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}
}


textures/ctf_q3w/largerblock3b_ow_b
{
	qer_editorimage textures/gothic_floor/largerblock3b_ow.tga

	{
		map textures/sfx/fire_ctfblue.tga
		tcmod scroll 0 1
		tcMod turb 0 .25 0 1.6
		tcmod scale 4 4
		blendFunc GL_ONE GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_floor/largerblock3b_ow.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}
}

textures/ctf_q3w/blocks18b_ow_r
{
	qer_editorimage textures/gothic_block/blocks18b_ow.tga

	{
		map textures/sfx/fire_ctfred.tga
		tcmod scroll 0 1
		tcMod turb 0 .25 0 5.6
		tcmod scale 1.5 1.5
		blendFunc GL_ONE GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_block/blocks18b_ow.tga
		blendFunc blend
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc filter
		rgbGen identity
	}
}

textures/ctf_q3w/blocks18b_ow_b
{
	qer_editorimage textures/gothic_block/blocks18b_ow.tga

	{
		map textures/sfx/fire_ctfblue.tga
		tcmod scroll 0 1
		tcMod turb 0 .25 0 5.6
		tcmod scale 1.5 1.5
		blendFunc GL_ONE GL_ZERO
		rgbGen identity
	}
	{
		map textures/gothic_block/blocks18b_ow.tga
		blendFunc blend
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc filter
		rgbGen identity
	}
}


textures/ctf_q3w/clangdark_ow3_b
{    
	qer_editorimage textures/ctf_q3w/clangdark_ow3.tga

	{
		map textures/sfx/proto_zzztblu2.tga
		tcMod turb 0 .5 0 9.6
		tcmod scale 2 2
		tcmod scroll 9 5
		blendFunc GL_ONE GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/clangdark_ow3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}
}

textures/ctf_q3w/clangdark_ow3_r
{    
	qer_editorimage textures/ctf_q3w/clangdark_ow3.tga

	{
		map textures/sfx/proto_zzzt.tga
		tcMod turb 0 .5 0 9.6
		tcmod scale 2 2
		tcmod scroll 9 5
		blendFunc GL_ONE GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/clangdark_ow3.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}
}

textures/ctf_q3w/clangdarkspot_noclang
{
	qer_editorimage textures/ctf_q3w/clangdarkspot.tga

	{
		map textures/liquids/proto_grueldark.tga
		blendFunc GL_ONE GL_ZERO
		tcmod scale 2 2
		tcMod scroll .01 .03
		tcMod turb 0 0.05 0 .05
	}
	{
		map textures/effects/tinfx3.tga
		blendFunc GL_ONE GL_ONE
		tcGen environment
	}
	{
		map textures/ctf_q3w/clangdarkspot.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}
}

textures/ctf_q3w/ceil1_22a_300
{
	qer_editorimage textures/base_light/ceil1_22a
	q3map_surfacelight 500
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_22a.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ceil1_30_300
{
	qer_editorimage textures/base_light/ceil1_30
	q3map_surfacelight 500
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/base_light/ceil1_30.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

/////////////////////////////////////////////////////////////////////
// Model Stuff
/////////////////////////////////////////////////////////////////////

models/mapobjects/baph/bapholamprfx
{
     deformVertexes autoSprite
     surfaceparm	trans
     cull none
     nomipmaps
        {
         clampmap models/mapobjects/baph/bapholamprfx.tga
         blendFunc GL_ONE GL_ONE
         tcmod rotate 333
         tcMod stretch sin .9 0.1 0 7
         rgbGen identity
        }
        {
         clampmap models/mapobjects/baph/bapholamprfx2.tga
         blendFunc GL_ONE GL_ONE
         tcmod rotate -301
         tcMod stretch sin 1 .1 0 9
         rgbGen identity
        }
    
}

models/mapobjects/baph/bapholampbfx
{
     deformVertexes autoSprite
     surfaceparm	trans
     cull none
     nomipmaps
        {
         clampmap models/mapobjects/baph/bapholampbfx.tga
         blendFunc GL_ONE GL_ONE
         tcmod rotate 333
         tcMod stretch sin .9 0.1 0 7
         rgbGen identity
        }
        {
         clampmap models/mapobjects/baph/bapholampbfx2.tga
         blendFunc GL_ONE GL_ONE
         tcmod rotate -301
         tcMod stretch sin 1 .1 0 9
         rgbGen identity
        }
    
}

models/mapobjects/baph/wrisr
{
     cull none
     nomipmaps
     surfaceparm	trans

        {
         map models/mapobjects/baph/wrisr.tga
         blendFunc GL_ONE GL_ONE
         tcmod scale  2 1
         tcmod scroll 3 0
         rgbGen identity
        }
        {
         map models/mapobjects/baph/wrisr.tga
         blendFunc GL_ONE GL_ONE
         tcmod scale  1 1
         tcmod scroll -5 0
         rgbGen identity
        }
}

models/mapobjects/baph/wrisb
{
     cull none
     nomipmaps
     surfaceparm	trans

        {
         map models/mapobjects/baph/wrisb.tga
         blendFunc GL_ONE GL_ONE
         tcmod scale  2 1
         tcmod scroll 3 0
         rgbGen identity
        }
        {
         map models/mapobjects/baph/wrisb.tga
         blendFunc GL_ONE GL_ONE
         tcmod scale  1 1
         tcmod scroll -5 0
         rgbGen identity
        }
}

/////////////////////////////////////////////////////////////////////
// Lights from gothic_lights.shader for ironcrosslt1.tga from the base
// directory of ctf_q3w
/////////////////////////////////////////////////////////////////////

textures/ctf_q3w/ironcrosslt1_1000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 1000
	light 1
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_2000

{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 2000
	light 1
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_2500
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 2500
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_3000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 3000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_3500
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 3500
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_4000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 4000
	light 1
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_5000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 5000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_10000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 10000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_20000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 20000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_30000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 30000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_40000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 40000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_500000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 500000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/ironcrosslt1_120000
{
	qer_editorimage textures/ctf_q3w/ironcrosslt1.tga
	q3map_lightimage textures/ctf_q3w/ironcrosslt1_blend.tga
	q3map_surfacelight 120000
	light 1
	surfaceparm nomarks

	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/ctf_q3w/ironcrosslt1_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

textures/ctf_q3w/dynafog_blue
{
	qer_editorimage textures/sfx/xbluelightimage.tga
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm fog
	surfaceparm  nodrop
	surfaceparm  nolightmap
	q3map_globaltexture
	fogparms ( 0.1 0.1 0.3 ) 320
	q3map_surfacelight 40

	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}
	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}



