//	*********************************************************
//	*		Bump Mapping Stuff			*
//	*********************************************************
//	*			OMFG				*
//	*********************************************************
textures/shadow_temple/brick04_d_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_brick04_d.tga
	q3map_normalimage textures/shadow_temple/normals/normal_brick04_d.tga
	q3map_lightmapsamplesize 1
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/brick04_d.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/brick04_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_brick04.tga
	q3map_normalimage textures/shadow_temple/normals/normal_brick04_d.tga
	q3map_lightmapsamplesize 1
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/brick04.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/brick03_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_brick03.tga
//	q3map_normalimage textures/shadow_temple/normals/normal_brick03.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/brick03.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/base_concrete_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_base_concrete.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/base_concrete.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/floor1_scale1
{
	qer_editorimage textures/shadow_temple/radiant/rad_floor1.tga
//	q3map_normalimage textures/shadow_temple/normals/normal_floor1.tga
	q3map_lightmapsamplesize 1
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/floor1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/walledge09
{
	qer_editorimage textures/shadow_temple/walledge09.tga
	q3map_normalimage textures/shadow_temple/normals/normal_walledge09.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/walledge09.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}

textures/shadow_temple/wall01_0000_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall01_0000.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall01_0000.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall06_0000_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall06_0000.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall06_0000.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall06_0000.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall04_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall04_scale.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall04.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall04.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall05_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall05.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall05.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall05.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall07_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall07.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall07.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall07.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall03_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall03.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall03.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall03.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/walledge06_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_walledge06.tga
	q3map_normalimage textures/shadow_temple/normals/normal_walledge06.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/walledge06.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/walledge07_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_walledge07.tga
	q3map_normalimage textures/shadow_temple/normals/normal_walledge07.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/walledge07.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall03a_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall03a.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall03a.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall03a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/pillar02vertical1_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_pillar02vertical1.tga
	q3map_normalimage textures/shadow_temple/normals/normal_pillar02vertical1.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/pillar02vertical1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/pillar02vertical_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_pillar02vertical.tga
	q3map_normalimage textures/shadow_temple/normals/normal_pillar02vertical.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/pillar02vertical.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/column01_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_column01.tga
	q3map_normalimage textures/shadow_temple/normals/normal_column01.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/column01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/border03
{
	qer_editorimage textures/shadow_temple/border03.tga
	q3map_normalimage textures/shadow_temple/normals/normal_border03.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/border03.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/brick02_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_brick02.tga
	q3map_normalimage textures/shadow_temple/normals/normal_brick02.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/brick02.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/border03_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_border03.tga
	q3map_normalimage textures/shadow_temple/normals/normal_brick02.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/border03.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/pillar05_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_pillar05.tga
	q3map_normalimage textures/shadow_temple/normals/normal_pillar05.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/pillar05.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/pillar08_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_pillar08.tga
	q3map_normalimage textures/shadow_temple/normals/normal_pillar08.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/pillar08.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/brick01
{
	qer_editorimage textures/shadow_temple/brick01.tga
	q3map_normalimage textures/shadow_temple/normal1a_brick01.tga
	q3map_lightmapsamplesize 1
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/brick01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall01_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall01.tga
	q3map_normalimage textures/shadow_temple/normals/normal_wall01.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
textures/shadow_temple/wall02_d_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_wall02_d.tga
	q3map_lightmapsamplesize 2
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wall02_d.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
}
///////////
textures/shadow_temple/baseconcrete_sand2
{
	qer_editorimage textures/shadow_temple/baseconcrete
	surfaceparm sand
	surfaceparm nodamage
//	q3map_lightmapsize 512 512
//	q3map_lightmapsamplesize 16
//	q3map_lightmapgamma 3
	{
		map textures/shadow_temple/baseconcrete.tga
		rgbGen identity
	}
	{
		
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
//textures/shadow_temple/floor1a1
//{
//	qer_editorimage textures/shadow_temple/floor1.tga
///	q3map_lightmapsize 512 512
////	q3map_lightmapsamplesize 16
//	{
//		map textures/shadow_temple/floor1.tga
//		rgbGen identity
//	}
//	{
//		
//		map $lightmap
//		blendfunc gl_dst_color gl_zero
//		tcGen lightmap
//		rgbGen identity
//	}
//}
//textures/shadow_temple/floor1b
//{
//	qer_editorimage textures/shadow_temple/floor1.tga
//	q3map_lightmapsize 512 512
//	q3map_lightmapsamplesize 32
//	q3map_lightmapgamma 2
//	{
//		map textures/shadow_temple/floor1.tga
//		rgbGen identity
//	}
//	{
//		
//		map $lightmap
//		blendfunc gl_dst_color gl_zero
//		tcGen lightmap
//		rgbGen identity
//	}
//}
////////
textures/shadow_temple/clip_sand
{
	qer_trans 0.20
	qer_editorimage textures/common/clip.tga
	surfaceparm nodraw
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm playerclip
	surfaceparm sand
	surfaceparm nodamage
}
textures/shadow_temple/baseconcrete_sand_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_baseconcrete.tga
	surfaceparm sand
	surfaceparm nodamage
	q3map_lightmapsamplesize 2
	q3map_lightmapsize 512 512
//	q3map_lightmapsamplesize 16
	q3map_lightmapgamma 2
	{
		map textures/shadow_temple/baseconcrete.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
textures/shadow_temple/baseconcrete_sand
{
	qer_editorimage textures/shadow_temple/baseconcrete.tga
	surfaceparm sand
	surfaceparm nodamage
	{
		map textures/shadow_temple/baseconcrete.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
textures/shadow_temple/largerblock3b3dim
{
	qer_editorimage textures/gothic_floor/largerblock3b3dim.tga
	{
		map textures/gothic_floor/largerblock3b3dim.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
textures/shadow_temple/largerblock3b3dim_scale
{
	qer_editorimage textures/shadow_temple/radiant/rad_largerblock3b3dim.tga
	q3map_lightmapsamplesize 2
	{
		map textures/gothic_floor/largerblock3b3dim.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
textures/shadow_temple/wall10
{
	qer_editorimage textures/shadow_temple/wall10.tga
	q3map_lightmapsamplesize 2
	{
		map textures/gothic_floor/wall10.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
textures/shadow_temple/block02a_d
{
	qer_editorimage textures/shadow_temple/block02a_d.tga
//	q3map_lightmapsize 256 256
//	q3map_lightmapsamplesize 16
//	q3map_lightmapgamma 2
	{
		map textures/shadow_temple/block02a_d.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		tcGen lightmap
		rgbGen identity
	}

}
//textures/shadow_temple/baseconcrete_sand
//{
//	qer_editorimage textures/shadow_temple/baseconcrete.tga
//	surfaceparm sand
//	surfaceparm nodamage
//	{
//		map $lightmap
//		rgbGen identity
//	}
//
//	{
//		map textures/shadow_temple/baseconcrete.tga
//		blendFunc GL_DST_COLOR GL_ZERO
//		rgbgen identity
//
//	}
//
//}
textures/shadow_temple/block02a_stone
{
	qer_editorimage textures/shadow_temple/block02a
	surfaceparm gravel
	surfaceparm nodamage
	{
		map $lightmap
		rgbGen identity
	}

	{
		map textures/shadow_temple/block02a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity

	}

}

textures/shadow_temple/wood17
{
	qer_editorimage textures/shadow_temple/wood17.tga
	surfaceparm nonsolid
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/wood17.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity

	}

}
textures/shadow_temple/phong_cement
{
	qer_editorimage textures/shadow_temple/wall01_0000.tga
	q3map_shadeangle 120
	{
		map $lightmap
		rgbGen identity
	}

	{
		map textures/shadow_temple/wall01_0000.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity

	}

}
textures/shadow_temple/block01c
{
	qer_editorimage textures/shadow_temple/block01c.tga
	surfaceparm nonsolid
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/shadow_temple/block01c.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity

	}

}
//	*********************************************************
//	*		SKY PORTAL STUFF			*
//	*********************************************************
//	*	Yes as you can see allot of time went here.	*
//	*	Basically the grid is just something to 	*
//	*	position the sun, and flares.			*
//	*********************************************************
textures/shadow_temple/skyboxgrid
{
	qer_editorimage textures/shadow_temple/grid_UP.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_sun .98 1 .8 120 131 48
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
	// 0.874504 0.865268 1.000000
	skyparms textures/shadow_temple/grid 128 -
	surfaceparm sky
}
textures/shadow_temple/skyportaltest

{

        surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm noimpact
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
	q3map_sun .98 1 .8 120 131 48
	qer_editorimage textures/shadow_temple/skyportal.tga
		{
		map textures/shadow_temple/sky_portal.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		}
}
textures/shadow_temple/sky45
{
	qer_editorimage textures/skies/xnight2_up.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
	q3map_sun 1 1 1 80 -41 58
	skyparms textures/shadow_temple/perdicus512 128 -
	surfaceparm sky
}
textures/shadow_temple/sky46
{
	qer_editorimage textures/shadow_temple/sky_up.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/skycolor.tga
	q3map_surfacelight 50
	q3map_lightsubdivide 384
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
	q3map_sun .98 1 .8 120 131 48
	// 0.874504 0.865268 1.000000
	skyparms textures/shadow_temple/sky 128 -
	surfaceparm sky
}
//	*********************************************************
//	*		Working Skyportal			*
//	*********************************************************
textures/shadow_temple/skyportal
{

        surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm sky
//	q3map_sun .98 1 .8 120 131 48	OLD SUN
	q3map_sun .98 1 .8 15 131.875 48.125	// sun1
	q3map_sun .98 1 .8 15 131.750 48.250	// sun2
	q3map_sun .98 1 .8 15 131.625 48.375	// sun3
//	q3map_sun .98 1 .8 15 131.500 48.500	// sun4
//	q3map_sun .98 1 .8 15 131.375 48.625	// sun5
//	q3map_sun .98 1 .8 15 131.250 48.750	// sun6
//	q3map_sun .98 1 .8 15 131.125 48.875	// sun7
//	q3map_sun .98 1 .8 15 131.000 49.000	// sun8
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
	qer_editorimage textures/common/skyportal.tga
	q3map_lightimage textures/shadow_temple/skycolor.tga
	q3map_surfacelight 100
	q3map_lightsubdivide 384

		{
		map textures/common/sky_portal2.tga
//		blendFunc GL_ZERO GL_ZERO
		alphaFunc GE128
//		depthWrite
		}
}
//	*********************************************************
//	*      Skybox Sky thats a hack and 1/2. sue me.		*
//	*	Basically its a manual ENV, technically		*
//	*********************************************************
textures/shadow_temple/sky_rt1
{

        surfaceparm nolightmap
	qer_editorimage textures/shadow_temple/sky_rt.tga
	surfaceparm sky
//	q3map_sun .98 1 .8 15 131.875 48.125	// sun1
//	q3map_sun .98 1 .8 15 131.750 48.250	// sun2
//	q3map_sun .98 1 .8 15 131.625 48.375	// sun3
	q3map_sun .98 1 .8 15 131.500 48.500	// sun4
//	q3map_sun .98 1 .8 15 131.375 48.625	// sun5
//	q3map_sun .98 1 .8 15 131.250 48.750	// sun6
//	q3map_sun .98 1 .8 15 131.125 48.875	// sun7
//	q3map_sun .98 1 .8 15 131.000 49.000	// sun8
		{
		map textures/shadow_temple/sky_rt.tga
		blendFunc blend
		}
}
textures/shadow_temple/sky_bk1
{

        surfaceparm nolightmap
	qer_editorimage textures/shadow_temple/sky_bk.tga
//	q3map_sun .98 1 .8 15 131.875 48.125	// sun1
//	q3map_sun .98 1 .8 15 131.750 48.250	// sun2
//	q3map_sun .98 1 .8 15 131.625 48.375	// sun3
//	q3map_sun .98 1 .8 15 131.500 48.500	// sun4
	q3map_sun .98 1 .8 15 131.375 48.625	// sun5
//	q3map_sun .98 1 .8 15 131.250 48.750	// sun6
//	q3map_sun .98 1 .8 15 131.125 48.875	// sun7
//	q3map_sun .98 1 .8 15 131.000 49.000	// sun8
	surfaceparm sky
		{
		map textures/shadow_temple/sky_bk.tga
		blendFunc blend
		}
}
textures/shadow_temple/sky_lf1
{

        surfaceparm nolightmap
	qer_editorimage textures/shadow_temple/sky_lf.tga
//	q3map_sun .98 1 .8 15 131.875 48.125	// sun1
//	q3map_sun .98 1 .8 15 131.750 48.250	// sun2
//	q3map_sun .98 1 .8 15 131.625 48.375	// sun3
//	q3map_sun .98 1 .8 15 131.500 48.500	// sun4
//	q3map_sun .98 1 .8 15 131.375 48.625	// sun5
	q3map_sun .98 1 .8 15 131.250 48.750	// sun6
//	q3map_sun .98 1 .8 15 131.125 48.875	// sun7
//	q3map_sun .98 1 .8 15 131.000 49.000	// sun8
	surfaceparm sky
		{
		map textures/shadow_temple/sky_lf.tga
		blendFunc blend
		}
}
textures/shadow_temple/sky_ft1
{

        surfaceparm nolightmap
	qer_editorimage textures/shadow_temple/sky_ft.tga
//	q3map_sun .98 1 .8 15 131.875 48.125	// sun1
//	q3map_sun .98 1 .8 15 131.750 48.250	// sun2
//	q3map_sun .98 1 .8 15 131.625 48.375	// sun3
//	q3map_sun .98 1 .8 15 131.500 48.500	// sun4
//	q3map_sun .98 1 .8 15 131.375 48.625	// sun5
//	q3map_sun .98 1 .8 15 131.250 48.750	// sun6
	q3map_sun .98 1 .8 15 131.125 48.875	// sun7
//	q3map_sun .98 1 .8 15 131.000 49.000	// sun8
	surfaceparm sky
		{
		map textures/shadow_temple/sky_ft.tga
		blendFunc blend
		}
}
textures/shadow_temple/sky_up1
{

        surfaceparm nolightmap
	qer_editorimage textures/shadow_temple/sky_up.tga
//	q3map_sun .98 1 .8 15 131.875 48.125	// sun1
//	q3map_sun .98 1 .8 15 131.750 48.250	// sun2
//	q3map_sun .98 1 .8 15 131.625 48.375	// sun3
//	q3map_sun .98 1 .8 15 131.500 48.500	// sun4
//	q3map_sun .98 1 .8 15 131.375 48.625	// sun5
//	q3map_sun .98 1 .8 15 131.250 48.750	// sun6
//	q3map_sun .98 1 .8 15 131.125 48.875	// sun7
	q3map_sun .98 1 .8 15 131.000 49.000	// sun8
	surfaceparm sky
		{
		map textures/shadow_temple/sky_up.tga
		blendFunc blend
		}
}
//	*********************************************************
//	*	For some strange reason, using an env twice	*
//	*	seems to 'shift' the textures 1 pixel.		*
//	*	Seems to be an engine thing, but this is a	*
//	*	working hack.					*
//	*********************************************************

textures/shadow_temple/sky46_insteadofportal
{
	qer_editorimage textures/shadow_temple/sky_up.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/skycolor.tga
	q3map_surfacelight 100
	q3map_lightsubdivide 384
	q3map_sun .98 1 .8 120 131 48
	// 0.874504 0.865268 1.000000
	skyparms textures/shadow_temple/skya 128 -
	surfaceparm sky
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
}
textures/shadow_temple/sky300
{
	qer_editorimage textures/shadow_temple/sky_up.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/skycolor.tga
	q3map_surfacelight 300
	q3map_lightsubdivide 384
	q3map_sun .98 1 .8 120 131 48
	// 0.874504 0.865268 1.000000
	skyparms textures/shadow_temple/sky 128 -
	surfaceparm sky
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
}
//	*********************************************************
//	*	This is to position the sun a bit better in	*
//	*	some situations. Its a nonsolid invisible sun	*
//	* 	source, nothing more, to create sun where it	*
//	*	would get deformed if it went through the normal*
//	* 	processes.					*
//	*********************************************************
textures/shadow_temple/skyportal_nonsolid

{

        surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm noimpact
	surfaceparm nonsolid
	q3map_sun .98 1 .8 120 131 48
	q3map_bounce 0
	q3map_backsplash 0 0
	q3map_notjunc
	qer_editorimage textures/shadow_temple/skyportal.tga
		{
		map textures/shadow_temple/sky_portal.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		}
}
//	*********************************************************
//	*	Actually, sfx/pureblack works much better.	*
//	*********************************************************
textures/shadow_temple/solid_nodraw

{

        surfaceparm nolightmap
	surfaceparm nomarks
	qer_editorimage textures/shadow_temple/solid_nodraw.tga
		{
		map textures/shadow_temple/solid_nodrawblack.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		}
}
//	*********************************************************
//	*	All these waters, the tcmod transform takes.	*
//	*	about a 3-10 percent hit on performance		*
//	*********************************************************

textures/shadow_temple/blu_water_sml
{
	qer_editorimage textures/shadow_temple/pool3d_3c.tga
	qer_trans .5	
	q3map_lightimage textures/shadow_temple/blu_water.tga
	q3map_surfacelight 35
	q3map_globaltexture
	q3map_backsplash 0 0
	surfaceparm trans
	surfaceparm nonsolid	
	surfaceparm nolightmap
	surfaceparm fog
	surfaceparm water
	fogparms ( 0.803904 0.721001 1.0 ) 600
		{ 
			map textures/shadow_temple/pool3d_5c.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 .025
		}
		{ 
			map textures/shadow_temple/pool3d_6c.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 -.05
		}
//		{ 
//			map textures/shadow_temple/pool3d_3c.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		
//		}
}
textures/shadow_temple/blu_water_50
{
	qer_editorimage textures/shadow_temple/pool3d_3c.tga
	qer_trans .5	
	q3map_lightimage textures/shadow_temple/bpool3d_3c.tga
	q3map_surfacelight 50
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	q3map_backsplash 0 0	
	surfaceparm nolightmap
	surfaceparm water
		{ 
			map textures/shadow_temple/bpool3d_5c.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 .05
		}
		{ 
			map textures/shadow_temple/bpool3d_6c.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 -.025
		}
//		{ 
//			map textures/shadow_temple/bpool3d_3c.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		
//		}
}
textures/shadow_temple/blu_water_60
{
	qer_editorimage textures/shadow_temple/pool3d_3c.tga
	qer_trans .5	
	q3map_lightimage textures/shadow_temple/apool3d_3c.tga
	q3map_surfacelight 25
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	q3map_backsplash 0 0	
	surfaceparm nolightmap
	surfaceparm fog
	surfaceparm water
	fogparms ( 0.803904 0.721001 1.0 ) 600
		{ 
			map textures/shadow_temple/pool3d_5b_1.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/shadow_temple/pool3d_6b_1.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/shadow_temple/pool3d_3b_1.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		
		}
}
textures/shadow_temple/blu_water_100
{
	qer_editorimage textures/shadow_temple/pool3d_3c.tga
	qer_trans .5	
	q3map_lightimage textures/shadow_temple/blu_water.tga
	q3map_surfacelight 25
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid	
	surfaceparm nolightmap
	surfaceparm fog
	surfaceparm water
	surfaceparm lightfilter

	fogparms ( .9 .9 .9 ) 600
	
		{ 
			map textures/shadow_temple/pool3d_5c.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/shadow_temple/pool3d_6c.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/shadow_temple/pool3d_3c.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		
		}
}
textures/shadow_temple/water_ripple
{
	qer_editorimage textures/shadow_temple/water_ripple.tga
	qer_trans .2	
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid	
	surfaceparm nolightmap
	surfaceparm nomarks
	
	{
		map textures/shadow_temple/pool3d_3b.tga
		blendFunc add
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}
}
//	*********************************************************
//	*	Removed a stage to help FPS a tad		*
//	*********************************************************
textures/shadow_temple/xflame2000
{
	deformVertexes autoSprite2 
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	q3map_surfacelight 2000
	qer_editorimage textures/sfx/flame1.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/shadow_temple/xflame500
{
	deformVertexes autosprite2 
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	q3map_surfacelight 50
	qer_editorimage textures/sfx/flame1.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	
//	}
}
//	*********************************************************
//	*	These were some more tests			*
//	*********************************************************
textures/shadow_temple/pureblack2
{
	qer_editorimage textures/shadow_temple/blacksky.tga
	q3map_sun .95 .95 1 55 65 60
	skyparms textures/shadow_temple/perdicus512 128 -
	surfaceparm noimpact
	surfaceparm sky


}


textures/shadow_temple/pureblack4
{
	qer_editorimage textures/shadow_temple/blacksky.tga
	q3map_sun .95 .95 1 55 90 90
	skyparms textures/shadow_temple/perdicus512 128 -
	q3map_lightimage textures/shadow_temple/blu_water.tga
	q3map_surfacelight 120
	surfaceparm noimpact
	surfaceparm sky


}



textures/shadow_temple/pitchblack
{
	qer_editorimage textures/shadow_temple/blacksky.tga
	surfaceparm nolightmap

	{
		map textures/shadow_temple/blacksky.tga
	}
}
textures/shadow_temple/flameanim_blue_200
{
	qer_editorimage textures/sfx/b_flame1.tga
	q3map_lightimage textures/sfx/b_flame7.tga
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	deformVertexes autoSprite2
	q3map_surfacelight 100
	{
		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
	}	


	{
		map textures/sfx/b_flameball.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin .6 .2 0 .6	
	}

}

textures/shadow_temple/glass_clear
{
	qer_editorimage textures/shadow_temple/tinfx_d.tga
	qer_trans 0.5
	surfaceparm nolightmap
	surfaceparm trans

	{
		map textures/shadow_temple/tinfx_d.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_nocul
{
	qer_editorimage textures/shadow_temple/tinfx_d.tga
	qer_trans 0.5
	surfaceparm nolightmap
	surfaceparm trans
	cull none

	{
		map textures/shadow_temple/tinfx_d.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_slick
{
	qer_editorimage textures/shadow_temple/tinfx_d.tga
	qer_trans 0.5
	surfaceparm nolightmap
	surfaceparm trans
	surfaceparm slick

	{
		map textures/shadow_temple/tinfx_d.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_nodmg
{
	qer_editorimage textures/shadow_temple/glass1a.tga
	qer_trans 0.5
	surfaceparm nolightmap
	surfaceparm trans
	surfaceparm nodamage

	{
		map textures/shadow_temple/glass1a.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}

textures/shadow_temple/glass_clear_nodamage
{
	qer_editorimage textures/effects/tinfx.tga
	qer_trans 0.5
	surfaceparm nolightmap
	surfaceparm trans
	surfaceparm nodamage

	{
		map textures/effects/tinfx.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_red
{
	qer_editorimage textures/shadow_temple/tinfxr.tga
	qer_trans 0.5
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/tinfxr.tga
	q3map_surfacelight 150
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks

		{
		map textures/shadow_temple/tinfxr.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_green
{
	qer_editorimage textures/shadow_temple/tinfxg.tga
	qer_trans 0.5
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/tinfxg.tga
	q3map_surfacelight 150
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks

		{
		map textures/shadow_temple/tinfxg.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_purple
{
	qer_editorimage textures/shadow_temple/tinfxp.tga
	qer_trans 0.5
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/tinfxp.tga
	q3map_surfacelight 150
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks

		{
		map textures/shadow_temple/tinfxp.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/glass_clear_yellow
{
	qer_editorimage textures/shadow_temple/tinfxy.tga
	qer_trans 0.5
	surfaceparm nolightmap
	q3map_lightimage textures/shadow_temple/tinfxy.tga
	q3map_surfacelight 15
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks

		{
		map textures/shadow_temple/tinfxy.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		}
}
textures/shadow_temple/gold
{
	qer_editorimage textures/shadow_temple/gold_env.tga

	{
		map textures/shadow_temple/gold_env.tga
		tcGen environment
		tcmod scale .5 .5
	}
	{
		map textures/shadow_temple/gold_metal.tga
		blendFunc GL_ONE GL_ONE
		detail
		tcMod scale 0.0693 0.0712
		rgbGen identity
	}
	{
		map $lightmap
		rgbgen identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}
textures/shadow_temple/pool_ceiling
{
	
	qer_editorimage textures/shadow_temple/marble1.tga
        {
//		map textures/liquids/pool3d_5e.tga
		map textures/shadow_temple/pool3d_3b.tga
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	
	}
       
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}

	{
		map textures/shadow_temple/marble1.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}


	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	}
       
              
}
textures/shadow_temple/b_cp_v24b_ripple
{
	
	qer_editorimage textures/shadow_temple/b_cp_v24b.tga
        {
		map textures/shadow_temple/pool3d_3b.tga
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	
	}
       
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}

	{
		map textures/shadow_temple/b_cp_v24b.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}


	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	}
       
              
}
textures/shadow_temple/tex_col_ripple
{
	
	qer_editorimage textures/shadow_temple/text-col.tga
        {
		map textures/shadow_temple/pool3d_3b.tga
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	
	}
       
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}

	{
		map textures/shadow_temple/text-col.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}


	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	}
       
              
}
textures/shadow_temple/marble1_blue_ripple
{
	
	qer_editorimage textures/shadow_temple/marble1_blue.tga
        {
		map textures/shadow_temple/pool3d_3b.tga
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	
	}
       
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}

	{
		map textures/shadow_temple/marble1_blue.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}


	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	}
       
              
}
textures/shadow_temple/WoodBridgeDirty_ripple
{
	
	qer_editorimage textures/shadow_temple/WoodBridgeDirty.tga
        {
		map textures/shadow_temple/pool3d_3b.tga
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	
	}
       
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}

	{
		map textures/shadow_temple/WoodBridgeDirty.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}


	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	}
       
              
}
textures/shadow_temple/stonetiles_ripple
{
	
	qer_editorimage textures/shadow_temple/stonetiles.tga
        {
		map textures/shadow_temple/pool3d_3b.tga
		tcmod scale -.25 -.25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	
	}
       
	{
		map textures/shadow_temple/pool3d_6e.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .025 .025
		rgbgen wave sin .75 0 0 0
	}

	{
		map textures/shadow_temple/stonetiles.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}


	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	}
       
              
}
textures/shadow_temple/shinymarble1
{
	qer_editorimage textures/shadow_temple/marble1.tga
        {
		map textures/base_wall/chrome_env.tga
                tcGen environment
		tcmod scale .25 .25 
		rgbGen identity   
	}

		
	{
		map textures/shadow_temple/marble1.tga
		blendFunc blend
		rgbGen identity
	}


	{
		map $lightmap
		rgbgen identity
		blendFunc filter
	}
		
} 
textures/shadow_temple/shiny_Eygpt_Floor001
{
	qer_editorimage textures/shadow_temple/Eygpt_Floor001.tga
        {
		map textures/base_wall/chrome_env.tga
                tcGen environment
		tcmod scale .25 .25 
		rgbGen identity   
	}

		
	{
		map textures/shadow_temple/Eygpt_Floor001.tga
		blendFunc blend
		rgbGen identity
	}


	{
		map $lightmap
		rgbgen identity
		blendFunc filter
	}
		
}
textures/shadow_temple/wrought01abot2
{
	cull disable
	surfaceparm alphashadow
	surfaceparm nomarks
	{
		map textures/shadow_temple/wrought01abot2.tga
		alphaFunc GE128	
		depthWrite
	}

}
textures/shadow_temple/constfog
{
	qer_editorimage textures/common/showfog.tga
	qer_trans .3
	surfaceparm	trans
	surfaceparm	nonsolid
	surfaceparm	fog
	surfaceparm	nolightmap
	fogparms ( .6 .7 .98 ) 600
}
textures/shadow_temple/beam_dusty2
{
	qer_editorimage textures/shadow_temple/beam_1.tga
        surfaceparm trans
        qer_trans .9	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/beam_1.tga
                blendFunc add
        }
}
textures/shadow_temple/fr1
{
	qer_editorimage textures/shadow_temple/fr1.tga
        surfaceparm trans
        qer_trans .5	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/fr1.tga
                blendFunc add
        }
}
textures/shadow_temple/fr2
{
	qer_editorimage textures/shadow_temple/fr2.tga
        surfaceparm trans
        qer_trans .5	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/fr2.tga
                blendFunc add
        }
}
textures/shadow_temple/pool1
{
	qer_editorimage textures/shadow_temple/pool1.tga
        surfaceparm trans
        qer_trans .5	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/pool1.tga
                blendFunc add
        }
}
textures/shadow_temple/pillars
{
	qer_editorimage textures/shadow_temple/pillars.tga
        surfaceparm trans
        qer_trans .5	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/pillars.tga
                blendFunc add
        }
}
textures/shadow_temple/amo_red
{
	qer_editorimage textures/shadow_temple/amo_red.tga
        surfaceparm trans
        qer_trans .5	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/amo_red.tga
                blendFunc add
        }
}
textures/shadow_temple/amo_blu
{
	qer_editorimage textures/shadow_temple/amo_blu.tga
        surfaceparm trans
        qer_trans .5	
        surfaceparm nomarks	
        surfaceparm nonsolid
	surfaceparm nolightmap
	cull none
	{
		map textures/shadow_temple/amo_blu.tga
                blendFunc add
        }
}
textures/shadow_temple/ancient3
{
	qer_editorimage textures/shadow_temple/ancient3.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	
	}
	{
		map textures/shadow_temple/ancient3.tga
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO

	
	}
}
textures/shadow_temple/lightgrid
{
	qer_trans 0.5
	surfaceparm nodraw
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm detail
	surfaceparm nomarks
	surfaceparm trans
	surfaceparm lightgrid
}
textures/shadow_temple/h20nodraw
{
	surfaceparm nodraw
	qer_trans 0.40
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm water
	qer_editorimage textures/shadow_temple/h20nodraw.tga
}

textures/shadow_temple/star1_flicker
{
	deformVertexes autoSprite
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	qer_editorimage textures/shadow_temple/star1_white.tga
	{
		animMap 10 textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_red.tga textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_red.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
	}	

}
textures/shadow_temple/star1_flicker_redblu
{
	deformVertexes autoSprite
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	qer_editorimage textures/shadow_temple/star1_red.tga
	{
		animMap 10 textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_red.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_green.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_red.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
	}	

}
textures/shadow_temple/star1_flicker_yellowgreen
{
	deformVertexes autoSprite
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	qer_editorimage textures/shadow_temple/star1_green.tga
	{
		animMap 10 textures/shadow_temple/star1_green.tga textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_yellow.tga textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_green.tga textures/shadow_temple/star1_yellow.tga textures/shadow_temple/star1_green.tga textures/shadow_temple/star1_white.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
	}	

}
textures/shadow_temple/star1_flicker_every
{
	deformVertexes autoSprite
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	qer_editorimage textures/shadow_temple/star1_green.tga
	{
		animMap 10 textures/shadow_temple/star1_green.tga textures/shadow_temple/star1_white.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_red.tga textures/shadow_temple/star1_green.tga textures/shadow_temple/star1_yellow.tga textures/shadow_temple/star1_blue.tga textures/shadow_temple/star1_red.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
	}	

}
textures/shadow_temple/h20nodraw
{
	surfaceparm nodraw
	qer_trans 0.40
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm water
	qer_editorimage textures/shadow_temple/h20nodraw.tga
}
textures/shadow_temple/water

//	*********************************************************
//	*      			Evil Water			*
//	*********************************************************
		
	{
		qer_editorimage textures/shadow_temple/e_waterfall.tga
		q3map_surfacelight 50
		q3map_globaltexture
		surfaceparm trans
		surfaceparm nonsolid
		surfaceparm water
		cull disable
		deformVertexes wave 64 sin 1 1 1 1	

		{ 
			map textures/shadow_temple/e_waterfall.tga
			rgbgen identity
			tcmod scale .1 .1
			tcmod scroll .05 .1
		}	
		{ 
			map textures/shadow_temple/e_waterfall.tga
			blendFunc add
			tcmod scale -1 -1
			tcmod scroll .50 .50
		}
		{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			rgbgen identity		
		}

}

textures/shadow_temple/skyportal_hellfog
{
	qer_editorimage textures/common/skyportal.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_sun .9 .9 1 70 65 65
	q3map_surfacelight 500
	surfaceparm sky
		{
//		map $whiteimage
		map textures/common/sky_portal.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		}
}
//	* These fuck up for some strange ass reason when viewing the sky through the alpha. wtf.
textures/shadow_temple/vines2
{	
    	qer_editorimage textures/shadow_temple/vines2.tga
	surfaceparm trans	
	surfaceparm alphashadow
   	surfaceparm nonsolid
	surfaceparm nomarks	
	cull none
        nopicmip
	{
		map textures/shadow_temple/vines2.tga
		blendFunc GL_ONE GL_ZERO

	alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		rgbGen identity
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
	}
}
textures/shadow_temple/ivy
{
    surfaceparm alphashadow			
	cull none
	{
		map textures/shadow_temple/ivy.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		depthWrite

	}

}