//SKYBOX BY HIPSHOT

textures/ct3tourney2/sky_dark
{
	qer_editorimage textures/ct3tourney2/env/clouds.tga
	q3map_lightimage textures/colors/m13sky.jpg
	q3map_lightmapFilterRadius 0 8		
	//q3map_sunExt 1 .8 .3 650 -150 60 3 32			
	q3map_skyLight 400 6 //175
	q3map_noFog
	surfaceparm sky
	surfaceparm noimpact
	surfaceparm nolightmap
	skyparms - 2000 -
	nopicmip
	{
		map textures/ct3tourney2/env/clouds.tga
		tcMod scroll .03 .005
		tcmod scale 2 2
		rgbGen identityLighting
	}	
	{
		map textures/ct3tourney2/env/lightning.jpg
		blendfunc add
		rgbGen wave noise 0 1 0 5 
		tcMod scale 0.32 0.32
		tcMod rotate 20
	}	
}

//SKYBOX BY HIPSHOT'''''END

textures/ct3tourney2/TRIM
{
	qer_editorimage textures/ct3tourney2/wall_5.tga
	
	surfaceparm nonsolid
	q3map_nonplanar
	q3map_shadeAngle 75
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ct3tourney2/wall_5.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/ct3tourney2/wood1_nonsolid
{
	qer_editorimage textures/ct3tourney2/wood1.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	
	}
	{
		map textures/ct3tourney2/wood1.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}


textures/ct3tourney2/wall_2_nonsolid
{
	qer_editorimage textures/ct3tourney2/wall_2.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	
	}
	{
		map textures/ct3tourney2/wall_2.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ct3tourney2/floor_3
{    
	{
		map textures/ct3tourney2/floor_3.tga
		rgbGen identity	
	}
	{
		map textures/ct3tourney2/water_ref.jpg
		blendFunc add  		
		tcGen environment
		rgbGen identity
		tcmod scale 2 2   
		//tcMod scroll .01 .25           
	}	
	{
		map textures/ct3tourney2/floor_3.tga
		blendFunc blend
		rgbGen identity 		
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		rgbgen identity 
	}
}

//DECALS

textures/ct3tourney2/dirt1
{
   noPicMip
   polygonOffset
   surfaceparm nonsolid
   surfaceparm nomarks
   {
      map textures/ct3tourney2/dirt1.tga
      blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
   }
}

textures/ct3tourney2/dirt8
{
   noPicMip
   polygonOffset
   surfaceparm nonsolid
   surfaceparm nomarks
   {
      map textures/ct3tourney2/dirt8.tga
      blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
   }
}

textures/ct3tourney2/tab_decal_leak_b
{
   noPicMip
   polygonOffset
   surfaceparm nonsolid
   surfaceparm nomarks
   {
      map textures/ct3tourney2/tab_decal_leak_b.tga
      blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
   }
}

textures/ct3tourney2/dirt4
{
   noPicMip
   polygonOffset
   surfaceparm nonsolid
   surfaceparm nomarks
   {
      map textures/ct3tourney2/dirt4.tga
      blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
   }
}

//WATER

textures/ct3tourney2/water
	{
		qer_editorimage textures/ct3tourney2/tele3.tga
		q3map_globaltexture
		surfaceparm nonsolid
		surfaceparm water
		q3map_surfacelight 10
		nopicmip
		
		cull disable
		deformVertexes wave 64 sin .5 .5 0 .5	
	
		
		{ 
			map textures/ct3tourney2/tele1.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 1 0 1 1 1 2
			tcmod scroll -.01 .001
		}
	
		{ 
			map textures/ct3tourney2/tele2.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 0 1 1 1 2 1
			tcmod scroll .005 -.001
		}

		{ 
			map textures/ct3tourney2/tele3.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .25 .5
			tcmod scroll .001 .01
		}	

		{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			rgbgen identity		
		}
}

//JP - shaders originally by Hipshot

textures/ct3tourney2/movesquare1
{
	qer_editorimage textures/ct3tourney2/jumpring.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes move 0 0 50 sawtooth 0 1 1 .8
	{
		clampmap textures/ct3tourney2/jumpring.jpg
		rgbGen wave sawtooth 1 -1 1 .8
		blendfunc add
	}
}

textures/ct3tourney2/movesquare2
{
	qer_editorimage textures/ct3tourney2/jumpring.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes move 0 0 50 sawtooth 0 1 .66 .8
	{
		clampmap textures/ct3tourney2/jumpring.jpg
		rgbGen wave sawtooth 1 -1 .66 .8
		blendfunc add
	}
}

textures/ct3tourney2/movesquare3
{
	qer_editorimage textures/ct3tourney2/jumpring.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes move 0 0 50 sawtooth 0 1 .33 .8
	{
		clampmap textures/ct3tourney2/jumpring.jpg
		rgbGen wave sawtooth 1 -1 .33 .8
		blendfunc add
	}
}

textures/ct3tourney2/movesquare4
{
	qer_editorimage textures/ct3tourney2/jumpring.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes move 0 0 50 sawtooth 0 1 0 .8
	{
		clampmap textures/ct3tourney2/jumpring.jpg
		rgbGen wave sawtooth 1 -1 0 .8
		blendfunc add
	}
}

textures/ct3tourney2/jp
{
	q3map_lightimage textures/ct3tourney2/jp1.tga
	qer_editorimage textures/ct3tourney2/jp1.tga
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/ct3tourney2/jp2.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/ct3tourney2/jp2.tga
		blendFunc add
		rgbGen wave square .5 .5 0 1
	}
}

//ANDROMEDA GRATES

textures/ct3tourney2/u_gr8_12a
{
	qer_editorimage textures/ct3tourney2/u_gr8_12.tga
	surfaceparm nomarks
	surfaceparm trans
	nopicmip
	{
		map textures/ct3tourney2/u_gr8_12.tga
		rgbGen identity
		depthWrite
		alphaFunc GE128
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
		depthFunc equal
	}
}

//LAMP MODEL BY HIPSHOT

textures/ct3tourney2/lamp/flare_industrial
{
	qer_editorimage textures/ct3tourney2/lamp/flare_industrial.jpg
	surfaceparm nonsolid	
	surfaceparm nomarks	
	surfaceparm nolightmap 
    	surfaceparm trans   
	//cull none    	
	//deformvertexes autosprite    	
	{
		map textures/ct3tourney2/lamp/flare_industrial.tga
		tcmod rotate 10
		blendFunc add		
		rgbGen identitylighting
	}
}

//RAIN BY HIPSHOT

textures/ct3tourney2/rain
{
	qer_editorimage textures/ct3tourney2/e7rain.tga
	surfaceparm trans	
	surfaceparm nomarks	
	surfaceparm nonsolid
	surfaceparm nolightmap
	qer_trans .5
	//deformVertexes move 3 1 0  sin 0 5 0 0.2
	//deformVertexes move .6 3.3 0  sin 0 5 0 0.4
	//deformVertexes wave 30 sin 0 10 0 .2
	cull none
	{
		map textures/ct3tourney2/e7rain.tga
		tcMod Scroll .5 -7
		tcMod turb .1 .25 0 -.1
		blendFunc GL_ONE GL_ONE
    	}
	//	{
	//		map textures/ct3tourney2/e7rain.tga
	//		tcMod Scroll -.5 -8
	//		tcmod Scale 1.1  1.2
	//		blendFunc GL_ONE GL_ONE
	//		rgbGen wave sin 0.75 .25 0 .65
    	//	}
    	//	{
	//		map textures/ct3tourney2/e7rain.tga
	//		tcMod Scroll .2 -6.3
	//		tcmod Scale 0.95  1.5
      //  		blendFunc GL_ONE GL_ONE
      // 	//	rgbGen wave sin 1 .25 0 .75
	//	}
}


//TP

textures/ct3tourney2/TP
	{
		qer_editorimage textures/ct3tourney2/tele3a.tga
		q3map_globaltexture
		surfaceparm nonsolid
		surfaceparm water
		q3map_surfacelight 100
		nopicmip
		
		cull disable
		deformVertexes wave 64 sin .5 .5 0 .5	
	
		
		{ 
			map textures/ct3tourney2/tele1a.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 1.5 0 1.5 1 1 2
			tcmod scroll -.05 .001
		}
	
		{ 
			map textures/ct3tourney2/tele2a.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .5 .5
			tcmod transform 0 1.5 1 1.5 2 1
			tcmod scroll .025 -.001
		}

		{ 
			map textures/ct3tourney2/tele3a.tga
			blendFunc GL_dst_color GL_one
			rgbgen identity
			tcmod scale .25 .5
			tcmod scroll .001 .025
		}	

		{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			rgbgen identity		
		}
}

//----------------------------------------------------------------------------------//
// EQ2 -- teleporter panel -- //
//----------------------------------------------------------------------------------//
textures/ct3tourney2/teleporter
{
	qer_editorimage textures/ct3tourney2/eq2_telepanel.tga
	q3map_lightimage textures/ct3tourney2/eq2_telegoo.tga
	q3map_surfacelight 25
	{
		map textures/ct3tourney2/eq2_telegoo.tga
		rgbGen identity
		tcMod turb 0 0.1 0 0.2
	}
	{
		map textures/ct3tourney2/eq2_telepanel.tga
		blendfunc blend
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
		depthFunc equal
	}
}

textures/common/hintskip
{	
	qer_editorImage textures/common/skip.tga
	qer_nocarve
	qer_trans 0.30
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm structural
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm skip
}