
textures/myst_effects/mystwater		
{
	qer_editorimage textures/myst_effects/mystwater1.tga
	qer_trans .5
	q3map_surfacelight 500
	q3map_lightsubdivide 64
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm water

	cull disable
	deformVertexes wave 64 sin .25 .25 0 .5	

	waterfogvars ( 0.25 0.15 0.1 ) 1024

	{ 
		map textures/myst_effects/mystwater2.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod scroll .025 .01
	}

	{ 
		map textures/myst_effects/mystwater1.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale -1 -1
		tcmod scroll .025 .025
	}

	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity		
	}
	
	
}

textures/myst_effects/mystwater1   
{
        qer_editorimage textures/myst_effects/mystwater1.jpg   
	q3map_surfacelight 0   
	deformVertexes wave 160 sin 0 10 0 .5   
	cull twosided   
	nofog   
	surfaceparm nomarks   
	surfaceparm nonsolid   
	surfaceparm water   
	waterfogvars ( 0.1 0.1 0.1 ) 128   

	{   
		animmap 2 textures/myst_effects/mystwater1.jpg textures/myst_effects/mystwater1.jpg   
		blendFunc add   
	}   
}

textures/myst_effects/myst_water
{
	qer_editorimage textures/myst_effects/myst_water.tga
	qer_trans 0.7
	q3map_globaltexture
	q3map_lightsubdivide 64
	cull disable
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	{
		map textures/myst_effects/myst_water.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .9 .9
		tcmod scroll .1 .2
	}
}

textures/myst_effects/8water
{
	nocompress
	qer_editorimage textures/myst_effects/8water.tga
	qer_trans .5
	q3map_surfacelight 50
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	cull disable
	nopicmip
	nofog

	waterfogvars ( 0.11 0.13 0.15 ) 0.2
	{ 
		fog on
		map textures/myst_effects/8water.tga
		blendFunc blend
		alphaFunc GE128
		depthWrite
		rgbgen identity
		tcmod scale 0.5 0.5
		tcmod scroll -.02 .001
	}
	
	{ 
		fog on
		map textures/myst_effects/8ripple.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 0.3 0.02 0 0.25 
		tcmod scale 0.01 0.01
		tcmod scroll -.001 -.0002
	}
	
	{ 
		fog on
		map textures/myst_effects/8ripple.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 0.1 0.03 0 0.4
		tcmod scale 1 1
		tcmod scroll -.005 -.001
	}
	{ 
		fog on
		map textures/myst_effects/8qwertz.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 0.4 0.02 0 0.3
		tcmod transform 0 1.5 1 1.5 2 1
		tcmod scroll .005 -.001
	}
}

textures/myst_effects/obel1
{
	qer_editorimage textures/myst_effects/obel1.jpg
	q3map_backsplash 0 0
	q3map_surfacelight 100
	q3map_lightsubdivide 64
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	{
		map textures/myst_effects/obel1.jpg
		tcGen environment
        	tcMod turb 0 0.1 0 0.1
        	tcmod scroll .1 .1
		blendfunc GL_ONE GL_ONE
	}
}

textures/myst_effects/obel2
{
	qer_editorimage textures/myst_effects/obel2.jpg
	q3map_backsplash 0 0
	q3map_surfacelight 100
	q3map_lightsubdivide 64
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	{
		map textures/myst_effects/obel2.jpg
		tcGen environment
        	tcMod turb 0 0.1 0 0.1
        	tcmod scroll .1 .1
		blendfunc GL_ONE GL_ONE
	}
}

textures/myst_effects/obel3
{
        qer_editorimage textures/myst_effects/obel3.tga
	cull none
	sort additive
	surfaceparm nodlight
	surfaceparm trans
	surfaceparm nonsolid

	{
		map textures/myst_effects/obel3.tga
		blendfunc blend			
		tcmod scale 1 1
		tcmod scroll 0 -2
	}

}

textures/myst_effects/obel4
{
        qer_editorimage textures/myst_effects/obel4.tga
	cull none
	sort additive
	surfaceparm nodlight
	surfaceparm trans
	surfaceparm nonsolid
	deformVertexes autosprite
	
	{
		map textures/myst_effects/obel4.tga
		blendfunc blend			
		tcmod rotate 7323		
	}

}
textures/myst_effects/obel5
{      
        qer_editorimage textures/myst_effects/obel5.tga
	cull none
	sort additive

	surfaceparm nodlight
	surfaceparm trans
	surfaceparm nonsolid
	nopicmip 
	deformVertexes autosprite	
	{
		
		clampmap textures/myst_effects/obel5.tga
		blendfunc gl_src_alpha gl_one	
		tcmod stretch sin 0.7 0.25 0 0.5	
		tcmod rotate 120	
	}
	{
		
		clampmap textures/myst_effects/obel5.tga
		blendfunc gl_src_alpha gl_one
		tcmod stretch sin 0.7 0.25 0.3 0.75		
		tcmod rotate -80	
	}
	

}

textures/myst_effects/myst_flag1
{
	qer_editorimage textures/myst_effects/myst_flag1.tga
	q3map_backsplash 0 0
	q3map_lightsubdivide 64
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	{
		map textures/myst_effects/myst_flag1.tga
		tcGen environment
        	tcMod turb 0 0.1 0 0.1
        	tcmod scroll .1 .1
		blendfunc GL_ONE GL_ONE
	}
}

textures/myst_effects/myst_flag2
{
	qer_editorimage textures/myst_effects/myst_flag2.tga
	q3map_backsplash 0 0
	q3map_lightsubdivide 64
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	{
		map textures/myst_effects/myst_flag2.tga
		tcGen environment
        	tcMod turb 0 0.1 0 0.1
        	tcmod scroll .1 .1
		blendfunc GL_ONE GL_ONE
	}
}

textures/myst_effects/myst_flag3
{
	qer_editorimage textures/myst_effects/myst_flag3.tga
	q3map_backsplash 0 0
	q3map_lightsubdivide 64
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	{
		map textures/myst_effects/myst_flag3.tga
		tcGen environment
        	tcMod turb 0 0.1 0 0.1
        	tcmod scroll .1 .1
		blendfunc GL_ONE GL_ONE
	}
}

textures/myst_effects/myst_lava
{
	q3map_globaltexture
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm lava
	surfaceparm nolightmap
	q3map_surfacelight 150
	q3map_lightsubdivide 64
	cull disable
	cull disable
	deformVertexes wave 100 sin 3 2 .1 0.1
        {
		map textures/myst_effects/myst_lava.tga
                tcmod scale .2 .2
                tcmod scroll .04 .03
                tcMod turb 0 .1 0 .01
                blendFunc GL_ONE GL_ZERO
                rgbGen identity
	}
	{
		map textures/myst_effects/myst_lava.tga
                blendfunc blend
		tcMod turb 0 .2 0 .1
	}
}
