//Modified by Jecoliah, changed the sky_clouds.tga to my own texture



//Modified by Jecoliah, changed the sky_clouds.tga to my own texture

// shader and textures (c) 2004 randy 'ydnar' reddig
// http://shaderlab.com
// stay 1337

// -----------------------------------------------------------
// sky
// must be compiled with -skyfix in BSP phase using Q3Map2
// to fix ATI/correct texture clamping issue
// -----------------------------------------------------------

textures/jec_sky_nt/sky
{
	qer_editorimage textures/jec_sky_nt/sky_clouds_mod.tga
	
	q3map_lightImage textures/jec_sky_nt/sky_clouds_mod.tga
	
	// light values tuned for -gamma 2 -compensate 4
	q3map_sunExt 1 1 1 150 -30 45 2 12 //changed from 200 to 150
	q3map_skyLight 75 3
	
	surfaceparm sky
	surfaceparm noimpact
	surfaceparm nolightmap
	
	skyparms textures/jec_sky_nt/env/sky 1337 -
	
	nopicmip
	
	{
		map textures/jec_sky_nt/sky_clouds_mod.tga
		//tcMod scroll 0.0025 -0.0075
		rgbGen identityLighting
	}
	{
		map textures/jec_sky_nt/sky_mask_mod.tga
		blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_ALPHA
		tcMod transform 0.27 0 0 0.25 0.1075 0.1075
		rgbGen identityLighting
	}
}


textures/jec_v2/snow_track_jec1
{ 
	qer_editorimage textures/jec_v2/snow_track_jec1.tga
	q3map_nonplanar 
	q3map_shadeangle 120 
	surfaceparm trans 
	surfaceparm nonsolid 
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset
	
	sort decal
	
	{
		map textures/jec_v2/snow_track_jec1.tga
       		blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen identity
	}
}

textures/jec_v2/snow_track_jec2
{ 
	qer_editorimage textures/jec_v2/snow_track_jec2.tga
	q3map_nonplanar 
	q3map_shadeangle 120 
	surfaceparm trans 
	surfaceparm nonsolid 
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset
	
	sort decal
	
	{
		map textures/jec_v2/snow_track_jec2.tga
       		blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen identity
	}
}

textures/jec_v2/snow_track_jec3_faint
{ 
	qer_editorimage textures/jec_v2/snow_track_jec1.tga
	q3map_nonplanar 
	q3map_shadeangle 120 
	surfaceparm trans 
	surfaceparm nonsolid 
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset
	
	sort decal
	
	{
		map textures/jec_v2/snow_track_jec1.tga
       		blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen const ( 0.5 0.5 0.5 )
	}
}

textures/jec_v2/snow_track_jec4_faint
{ 
	qer_editorimage textures/jec_v2/snow_track_jec2.tga
	q3map_nonplanar 
	q3map_shadeangle 120 
	surfaceparm trans 
	surfaceparm nonsolid 
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset
	
	sort decal
	
	{
		map textures/jec_v2/snow_track_jec2.tga
       		blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen const ( 0.5 0.5 0.5 )
	}
}

textures/jec_v2/snow_track_jec3
{ 
	qer_editorimage textures/jec_v2/snow_track_jec3.tga
	q3map_nonplanar 
	q3map_shadeangle 120 
	surfaceparm trans 
	surfaceparm nonsolid 
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset
	
	sort decal
	
	{
		map textures/jec_v2/snow_track_jec3.tga
       		blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen identity
	}
}

//textures/mission_critical_zone/jec_window_1
//{
//	qer_trans 0.5
//	qer_editorimage textures/mission_critical_zone/jec_window_1.tga
//	cull disable
//	nomipmaps
//	nopicmip
//	surfaceparm glass
//	surfaceparm alphashadow
//	surfaceparm trans
//	{
//		map textures/mission_critical_zone/jec_window_1.tga
//		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
//		rgbGen vertex
//	}
//}

textures/mission_critical_zone/jec_window_1
{
	qer_editorimage textures/mission_critical_zone/jec_window_1.tga
	qer_trans 0.5
	surfaceparm alphashadow
	surfaceparm glass
	surfaceparm pointlight
	surfaceparm trans
	{
		map textures/mission_critical_zone/jec_window_1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}

//textures/mission_critical_zone/jec_window_2
//{
//	qer_editorimage textures/mission_critical_zone/jec_window_2.tga
//	qer_trans 0.5
//	surfaceparm alphashadow
//	surfaceparm nomarks
//	surfaceparm pointlight
//	surfaceparm trans
//	surfaceparm nonsolid
//	{
//		map textures/mission_critical_zone/jec_window_2.tga
//		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
//		rgbGen vertex
//	}
//}

textures/mission_critical_zone/jec_window_2
{
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	implicitMask -
}

textures/mission_critical_zone/jec_bars_m01
{
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	implicitMask -
}

textures/mission_critical_zone/jec_clipmissile
{
	qer_trans 0.3
	surfaceparm clipmissile
	surfaceparm nodraw
	surfaceparm nomarks
//	surfaceparm playerclip
	surfaceparm trans
}

//jec_metal_door1
textures/mission_critical_zone/jec_metal_door1
	{
	surfaceparm metalsteps
	{
		map textures/mission_critical_zone/tinfx5.tga
		rgbGen identity
		tcGen environment
	}
	{
		map textures/mission_critical_zone/jec_metal_door1.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

//jec_metal_door2
textures/mission_critical_zone/jec_metal_door2
	{
	surfaceparm metalsteps
	{
		map textures/mission_critical_zone/tinfx5.tga
		rgbGen identity
		tcGen environment
	}
	{
		map textures/mission_critical_zone/jec_metal_door2.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

//jec_metal_door3
textures/mission_critical_zone/jec_metal_door3
	{
	surfaceparm metalsteps
	{
		map textures/mission_critical_zone/tinfx5.tga
		rgbGen identity
		tcGen environment
	}
	{
		map textures/mission_critical_zone/jec_metal_door3.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}



//jec_cab_04
textures/mission_critical_zone/jec_cab_04
	{
	surfaceparm metalsteps
	{
		map textures/mission_critical_zone/tinfx5.tga
		rgbGen identity
		tcGen environment
	}
	{
		map textures/mission_critical_zone/jec_cab_04.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}