textures/cptnt_baserace/br_skybox
{
	qer_editorimage textures/cptnt_baserace/env/sky_bk.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_globaltexture
	q3map_skylight 65 3
	q3map_sun 0.3 0.3 0.45 60 35 45
	q3map_lightsubdivide 256
	q3map_surfacelight 50
	surfaceparm sky
	nopicmip
	skyparms cptnt_baserace/env/sky - -
}

textures/cptnt_baserace/trenchfog
{
	qer_editorimage textures/cptnt_baserace/trenchfog.tga
	surfaceparm	trans
	surfaceparm	nonsolid
	surfaceparm	fog
	surfaceparm 	nodrop
	surfaceparm 	nolightmap
	q3map_globaltexture
	q3map_surfacelight 10
	fogparms ( .75 .75 .85 ) 128
	
	{
		map textures/cptnt_baserace/trenchfog.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		alphaGen vertex
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
	}

	{
		map textures/cptnt_baserace/trenchfog.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		alphaGen vertex
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}


}

textures/cptnt_baserace/baseracesky
{
	qer_editorimage textures/cptnt_baserace/env/sky_bk.tga	
	
	// light values tuned for -gamma 2 -compensate 4
	q3map_sun 0.3 0.3 0.45 60 35 45
	q3map_skylight 65 3
	surfaceparm sky
	surfaceparm noimpact
	surfaceparm nolightmap
	skyparms textures/cptnt_baserace/env/sky 1337 -
	nopicmip
	{
		map textures/cptnt_baserace/sky_mask.tga
		blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_ALPHA
		tcMod transform 0.25 0 0 0.5 0.6 0.3
		rgbGen identityLighting
	}
}


textures/cptnt_baserace/capzone_blue
{
	nocompress
	qer_editorimage textures/cptnt_baserace/capzone_blue.tga
	qer_trans .5
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull disable
	nopicmip
	nofog

	waterfogvars ( 0.11 0.13 0.15 ) 0.2
		{ 
		fog on
		map textures/cptnt_baserace/capzone_blue.tga
		blendFunc blend
		alphaFunc GE128
		depthWrite
		rgbgen identity
		tcmod scale 0.1 0.5
		tcmod scroll -.02 .001
	}

	{ 
		fog on
		map textures/cptnt_baserace/capzone_blue.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 0.7 0.3 0 0.2
		tcmod transform 0 1.5 1 2.5 2 2
		tcmod scroll .005 -.001
	}
}

textures/cptnt_baserace/capzone_red
{
	nocompress
	qer_editorimage textures/cptnt_baserace/capzone_red.tga
	qer_trans .5
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	cull disable
	nopicmip
	nofog

	waterfogvars ( 0.11 0.13 0.15 ) 0.2
		{ 
		fog on
		map textures/cptnt_baserace/capzone_red.tga
		blendFunc blend
		alphaFunc GE128
		depthWrite
		rgbgen identity
		tcmod scale 0.1 0.5
		tcmod scroll -.02 .001
	}

	{ 
		fog on
		map textures/cptnt_baserace/capzone_red.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 0.7 0.3 0 0.2
		tcmod transform 0 1.5 1 2.5 2 2
		tcmod scroll .005 -.001
	}
}

textures/cptnt_baserace/flag_american
{
	polygonOffset
	entityMergable
	surfaceparm noimpact
	cull disable
	{
		map textures/cptnt_baserace/flag_american.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		alphaGen vertex
	}
}

textures/cptnt_baserace/flag_axis
{
	polygonOffset
	entityMergable
	surfaceparm noimpact
	cull disable
	{
		map textures/cptnt_baserace/flag_axis.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		alphaGen vertex
	}
}

textures/cptnt_baserace/baseracegrass
{
    q3map_nonplanar
    qer_editorimage textures/temperate_sd/grass_dense1.tga
    surfaceparm landmine
    surfaceparm gravelsteps
    
    {
        map $lightmap
        rgbGen identity
    }
    {
		map textures/temperate_sd/grass_dense1.tga
        blendFunc filter
    }

}

textures/cptnt_baserace/grass_1
{
	qer_trans 0.5
	qer_editorimage textures/cptnt_baserace/grass_1.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm glass
	surfaceparm alphashadow
	surfaceparm trans
	{
		map textures/cptnt_baserace/grass_1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen vertex
	}
}

textures/cptnt_baserace/grass_2
{
	qer_trans 0.5
	qer_editorimage textures/cptnt_baserace/grass_1.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm glass
	surfaceparm alphashadow
	surfaceparm trans
	{
		map textures/cptnt_baserace/grass_2.tga
		blendFunc GL_ONE GL_ONE
		rgbGen vertex
	}
}

textures/cptnt_baserace/grass_1b
{
	qer_trans 0.5
	qer_editorimage textures/cptnt_baserace/grass_1.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm glass
	surfaceparm alphashadow
	surfaceparm trans
	deformVertexes autosprite
	{
		map textures/cptnt_baserace/grass_1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen vertex
	}
}

textures/cptnt_baserace/text_ready
{
	qer_trans 0.5
	qer_editorimage textures/cptnt_baserace/text_ready.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm glass
	surfaceparm alphashadow
	surfaceparm trans
	{
		map textures/cptnt_baserace/text_ready.tga
		blendFunc GL_ONE GL_ONE
		rgbGen vertex
	}
}

textures/cptnt_baserace/fucking_grass
{ 
        surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	cull disable
	nopicmip		
        surfaceparm nolightmap 
        deformVertexes autosprite
	qer_editorimage textures/cptnt_baserace/fucking_grass.tga

        {
		clampmap textures/cptnt_baserace/fucking_grass.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
                rgbGen identity
	}
}

textures/cptnt_baserace/brgrass1
{ 
        surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	cull disable
	nopicmip		
        surfaceparm nolightmap 
        deformVertexes autosprite
	qer_editorimage textures/cptnt_baserace/brgrass1.tga

        {
		clampmap textures/cptnt_baserace/brgrass1.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
                rgbGen identity
	}
}

textures/cptnt_baserace/brgrass2
{ 
        surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	cull disable
	nopicmip		
        surfaceparm nolightmap 
        deformVertexes autosprite
	qer_editorimage textures/cptnt_baserace/brgrass2.tga

        {
		clampmap textures/cptnt_baserace/brgrass2.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
                rgbGen identity
	}
}