textures/ghost-dfwc11/ter_gravelmud
{
	qer_editorimage textures/terrain_soc/ter_mudgravel.tga
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_alphaMod dotproduct2 ( 0.0 0.0 0.75 )
	{
		// Primary
		map textures/terrain_soc/ter_gravel1.tga
		rgbGen identity
	}
	{
		// Secondary
		map textures/terrain_soc/ter_mud1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}


//original xblackfog from sfx directory, tweaked fogparms opactiy

textures/ghost-dfwc11/zgreenfog
{
	qer_editorimage textures/ghost-dfwc11/fog_green.tga
	qer_nocarve
	surfaceparm	trans
	surfaceparm	nonsolid
	surfaceparm	fog
	surfaceparm	nolightmap
	fogparms ( 0 .3 0 ) 30000
}

//changed q3map_sun settings from original mp_midnight skybox

textures/ghost-dfwc11/mp_midnight
{
	qer_editorimage env/mp_midnight/midnight-silence_ft.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_globaltexture
	q3map_lightsubdivide 256
	q3map_surfacelight 200
	surfaceparm sky
	q3map_sun 1 1 1 250 270 50
	skyparms env/mp_midnight/midnight-silence - -
}

textures/ghost-dfwc11/waterfall
{
	nopicmip
	qer_editorimage textures/ghost-dfwc11/waterfall.tga
	surfaceparm nolightmap
	surfaceparm trans
	surfaceparm nonsolid
	cull none
	{
		map textures/ghost-dfwc11/waterfall.tga
		blendFunc GL_dst_color GL_one
		tcMod scroll 0 -1.2
	}
	{
		map textures/ghost-dfwc11/waterfall.tga
		blendFunc GL_dst_color GL_one
		tcMod scroll 0 -0.7
	}
}

textures/ghost-dfwc11/mist_A
{
	qer_editorimage textures/ghost-dfwc11/mist.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/ghost-dfwc11/mist.tga
		tcMod rotate 0.0
		AlphaGen wave sawtooth 1 -1 0.851161 0.5
		rgbGen wave sawtooth 1. 10 0.851161 0.5
		tcMod stretch sawtooth 0.4 1.5 0.851161 0.5
		blendfunc blend
	}
}

textures/ghost-dfwc11/mist_B
{
	qer_editorimage textures/ghost-dfwc11/mist.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/ghost-dfwc11/mist.tga
		tcMod rotate 0.0
		AlphaGen wave sawtooth 1.0 -1.0 1.998535 0.5
		rgbGen wave sawtooth 1.0 0.0 1.998535 0.50
		tcMod stretch sawtooth 0.4 1.5 1.998535 0.5
		blendfunc blend
	}
}

textures/ghost-dfwc11/mist_C
{
	qer_editorimage textures/ghost-dfwc11/mist.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/ghost-dfwc11/mist.tga
		tcMod rotate 0.000000
		AlphaGen wave sawtooth 1.0 -1.0 1.050752 0.5
		rgbGen wave sawtooth 1.0 0.0 1.050752 0.5
		tcMod stretch sawtooth 0.4 1.5 1.050752 0.5
		blendfunc blend
	}
}

textures/ghost-dfwc11/mist_D
{
	qer_editorimage textures/ghost-dfwc11/mist.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/ghost-dfwc11/mist.tga
		tcMod rotate 0.000000
		AlphaGen wave sawtooth 1.0 -1.0 0.491287 0.5
		rgbGen wave sawtooth 1.0 0.0 0.491287 0.5
		tcMod stretch sawtooth 0.4 1.5 0.491287 0.5
		blendfunc blend
	}
}

textures/ghost-dfwc11/mist_E
{
	qer_editorimage textures/ghost-dfwc11/mist.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 0 0 0 sawtooth 0 0 0 0
	{
		clampmap textures/ghost-dfwc11/mist.tga
		tcMod rotate 0.000000
		AlphaGen wave sawtooth 1.0 -1.0 1.857723 0.5
		rgbGen wave sawtooth 1.0 0.0 1.857723 0.5
		tcMod stretch sawtooth 0.4 1.5 1.857723 0.5
		blendfunc blend
	}
}

textures/ghost-dfwc11/rope_trans
{

	qer_editorimage textures/ghost-dfwc11/rope.tga
	cull disable
	surfaceparm alphashadow
	surfaceparm trans	
        {
                map textures/ghost-dfwc11/rope.tga
                alphaFunc GE128
		depthWrite
		rgbGen vertex
        }
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
		depthFunc equal
	}


}

// Generated by Frozen Sand Particle Studio
// Tue Apr 26 22:16:16 2011
// Use on a 128x128 unit brush face


textures/ghost-dfwc11/leaves
{
	qer_editorimage textures/ghost-custom/leaves.tga
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 484 inversesawtooth 0 1 0 0.15
	deformvertexes move -6.3567 -9.37576 0 inversesawtooth 0 1 0 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-custom/leaves.tga
		blendfunc GL_ONE GL_ONE
		rgbgen const ( 1 1 1 )
		alphagen wave sawtooth 0 6 0 0.15
		tcMod rotate 11
		tcMod stretch sawtooth 1 -0.7 0 0.15
	}
}

// Generated by Frozen Sand Particle Studio
// Wed May 04 21:53:28 2011
// Use on a 12x12 unit brush face


textures/ghost-dfwc11/flares
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_1
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 15 sawtooth 0 1 0 0.15
	deformvertexes move -32.2626 105.645 0 square -0.00905292 1 0 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1 0.15
		alphagen wave sawtooth 0 6 0 0.15
		tcMod rotate -10
		tcMod stretch sawtooth 1 -0.7 0 0.15
	}
}

textures/ghost-dfwc11/zzflares_1
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_2
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 34 sawtooth 0 1 0.204362 0.15
	deformvertexes move -22.6455 26.3501 0 square -0.0287819 1 0.204362 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.20436 0.15
		alphagen wave sawtooth 0 6 0.204362 0.15
		tcMod stretch sawtooth 1 -0.7 0.204362 0.15
	}
}

textures/ghost-dfwc11/zzflares_2
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_3
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 18 sawtooth 0 1 0.34695 0.15
	deformvertexes move -1.65987 114.991 0 square -0.00869543 1 0.34695 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.34695 0.15
		alphagen wave sawtooth 0 6 0.34695 0.15
		tcMod rotate -1
		tcMod stretch sawtooth 1 -0.7 0.34695 0.15
	}
}

textures/ghost-dfwc11/zzflares_3
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_4
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 28 sawtooth 0 1 0.472858 0.15
	deformvertexes move 38.788 68.0358 0 square -0.0127688 1 0.472858 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.47286 0.15
		alphagen wave sawtooth 0 6 0.472858 0.15
		tcMod rotate -18
		tcMod stretch sawtooth 1 -0.7 0.472858 0.15
	}
}

textures/ghost-dfwc11/zzflares_4
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_5
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 35 sawtooth 0 1 0.589025 0.15
	deformvertexes move -19.6862 0.788957 0 square -0.0507564 1 0.589025 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.58902 0.15
		alphagen wave sawtooth 0 6 0.589025 0.15
		tcMod rotate 19
		tcMod stretch sawtooth 1 -0.7 0.589025 0.15
	}
}

textures/ghost-dfwc11/zzflares_5
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_6
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 12 sawtooth 0 1 0.698448 0.15
	deformvertexes move -62.1744 -60.8326 0 square 0 1 0.698448 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.69845 0.15
		alphagen wave sawtooth 0 6 0.698448 0.15
		tcMod rotate -1
		tcMod stretch sawtooth 1 -0.7 0.698448 0.15
	}
}

textures/ghost-dfwc11/zzflares_6
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	q3map_cloneshader textures/ghost-dfwc11/zzflares_7
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 19 sawtooth 0 1 0.80278 0.15
	deformvertexes move 45.682 -53.4206 0 square 0 1 0.80278 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.80278 0.15
		alphagen wave sawtooth 0 6 0.80278 0.15
		tcMod rotate 6
		tcMod stretch sawtooth 1 -0.7 0.80278 0.15
	}
}

textures/ghost-dfwc11/zzflares_7
{
	qer_editorimage textures/ghost-dfwc11/flare0.tga
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nodlight
	deformvertexes move 0 0 24 sawtooth 0 1 0.903062 0.15
	deformvertexes move -96.3602 60.4279 0 square -0.00879197 1 0.903062 0.15
	deformvertexes autosprite
	cull disable
	{
		clampmap textures/ghost-dfwc11/flare0.tga
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sawtooth 1 -1 1.90306 0.15
		alphagen wave sawtooth 0 6 0.903062 0.15
		tcMod rotate 3
		tcMod stretch sawtooth 1 -0.7 0.903062 0.15
	}
}

//Cracks
textures/ghost-dfwc11/crack_01
{
        qer_editorimage textures/ghost-dfwc11/crack_01.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_01.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_02
{
        qer_editorimage textures/ghost-dfwc11/crack_02.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_02.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_03
{
        qer_editorimage textures/ghost-dfwc11/crack_03.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_03.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_04
{
        qer_editorimage textures/ghost-dfwc11/crack_04.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_04.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_05
{
        qer_editorimage textures/ghost-dfwc11/crack_05.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_05.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_06
{
        qer_editorimage textures/ghost-dfwc11/crack_06.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_06.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_07
{
        qer_editorimage textures/ghost-dfwc11/crack_07.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_07.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_08
{
        qer_editorimage textures/ghost-dfwc11/crack_08.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_08.tga
                blendfunc filter
        }
}

textures/ghost-dfwc11/decal_crack_09
{
        qer_editorimage textures/ghost-dfwc11/crack_09.tga
        surfaceparm nolightmap
        surfaceparm nomarks
        surfaceparm nonsolid
        surfaceparm trans
        qer_trans 0.5
        {
                map textures/ghost-dfwc11/crack_09.tga
                blendfunc filter
        }
}