
// basically just copied Tim's fog for map tim_ctf1 from pak0.pk3
textures/01/fog
{
	qer_editorimage textures/colors/grey
	qer_trans .75

	surfaceparm fog
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans

	fogparms ( .729 .729 .780 ) 464
}

textures/01/portal
{
	qer_editorimage textures/01/portal

	surfaceparm nolightmap
	surfaceparm nomarks

	portal
	{
		map textures/01/portal
		blendfunc filter
		depthWrite
	}
	{
		map textures/colors/black
		blendfunc blend
		alphagen portal 1024 // the value doesn't seem to make any difference
		rgbGen identityLighting
	}
}

textures/01/sky
{
	qer_editorimage textures/01/sky_up

	q3map_sun 1 .9 .8 100 135 60
	q3map_surfacelight 100

	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky

	skyparms textures/01/sky 512 -
}

textures/01/sky_bottom
{
	qer_editorimage textures/01/sky_dn

	q3map_surfacelight 100

	surfaceparm nolightmap
	{
		clampmap textures/01/sky_dn
	}
}
textures/01/sky_side
{
	qer_editorimage textures/01/sky_ft

	q3map_surfacelight 100

	surfaceparm nolightmap
	{
		clampmap textures/01/sky_ft
	}
}
textures/01/sky_top
{
	qer_editorimage textures/01/sky_up

	q3map_surfacelight 100

	surfaceparm nolightmap
	{
		clampmap textures/01/sky_up
	}
}

// basically just copied from pak0.pk3
textures/01/water
{
	qer_editorimage textures/01/pool3d_3c2
	qer_trans .5

	q3map_globaltexture

	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water

	cull disable
	deformVertexes wave 64 sin .5 .5 0 .5
	{
		map textures/01/pool3d_5c2
		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/01/pool3d_6c2
		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/01/pool3d_3c2
		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
	}
}
