
textures/myst/myst_torch
{
	qer_editorimage textures/myst/myst_ember2.tga
	surfaceparm pointlight
	surfaceparm woodsteps
	{
		map textures/myst/myst_ember1.tga
		rgbGen wave sin 1 0.5 0 0.5
		tcmod rotate 3
	}
	{
		map textures/myst/myst_ember2.tga
		blendfunc blend
		rgbGen vertex
	}
}

textures/myst/starfield_skybox 
{ 
	qer_editorimage textures/myst/starfield 
	surfaceparm noimpact 
	surfaceparm nolightmap 
	q3map_surfacelight 70 
	skyparms env/starfield/starfield - - 
}


textures/myst/sd_batterysky
{
	nocompress
	qer_editorimage textures/skies/topclouds.tga
	q3map_lightrgb 1.0 1.0 1.0
	q3map_lightmapFilterRadius 0 8
	q3map_sunExt 1 1 1 140 315 50 3 32
	q3map_skyLight 60 6
	q3map_nofog
	
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nodlight
	surfaceparm sky
	
	skyparms textures/skies_sd/wurzburg_env/sky 512 -
 
	sunshader textures/skies_sd/batterysunfog
 
	
	{	fog off
		map textures/skies_sd/battery_clouds.tga
		tcMod scale 2.5 2.5
		tcMod scroll 0.0015 -0.003
		rgbGen identityLighting
	}

	{
		fog off
		clampmap textures/skies_sd/battery_mask_ydnar.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		tcMod scale 0.956 0.956
		tcMod transform 1 0 0 1 -1 -1
		rgbGen const ( 0.4 0.4 0.4 ) 
	}
}

textures/myst/teleport_b
{ 
	cull none 
	deformVertexes wave 1 sin -0.5 0 0 1
	noPicmip 
	surfaceparm nonsolid
	surfaceparm trans 
	{ 
		map textures/sfx/construction.tga 
		blendFunc GL_SRC_ALPHA GL_ONE 
		rgbGen const ( 0 0.2 0.5 )
		tcGen environment 
		tcMod scroll 0.01 -0.01
	} 
}


textures/myst/gold_obj
{

	qer_editorimage models/mapobjects/goblet/gob1.tga
	q3map_surfacelight 300
	{
		map models/mapobjects/goblet/gob1.tga
		rgbGen identity
		tcMod scale 0.25 0.25
		tcGen environment 
	}
	{
		map models/mapobjects/goblet/gob1.tga
		blendfunc gl_one_minus_src_alpha gl_src_alpha
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}
textures/myst/fern
{
	cull none

	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans

	qer_editorImage textures/myst/fern.tga
	qer_alphaFunc gequal 0.5

	{
		map textures/myst/fern.tga
		rgbGen vertex
		alphaGen const 1.0
	//	rgbGen exactVertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/invisible
{
	surfaceparm nodraw
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans

	qer_editorImage textures/common/nodraw
	qer_trans 0.5

	{
		map textures/myst/invisible.tga
		rgbGen vertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/bannanaleaf
{	
	cull none

	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans

	qer_editorImage textures/myst/bannanaleaf.tga
	qer_alphaFunc gequal 0.5

	{
		map textures/myst/bannanaleaf.tga
		rgbGen vertex
		alphaGen const 1.0
	//	rgbGen exactVertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/leaf1
{
	cull none

	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans

	qer_editorImage textures/myst/leaf1.tga
	qer_alphaFunc gequal 0.5

	{
		map textures/myst/leaf1.tga
		rgbGen vertex
		alphaGen const 1.0
	//	rgbGen exactVertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/leaf2
{
	cull none

	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans

	qer_editorImage textures/myst/leaf2.tga
	qer_alphaFunc gequal 0.5

	{
		map textures/myst/leaf2.tga
		rgbGen vertex
		alphaGen const 1.0
	//	rgbGen exactVertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/leaf3
{
	cull none

	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans

	qer_editorImage textures/myst/leaf3.tga
	qer_alphaFunc gequal 0.5

	{
		map textures/myst/leaf3.tga
		rgbGen vertex
		alphaGen const 1.0
	//	rgbGen exactVertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/batleaf
{
	cull none

	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans
	qer_editorImage textures/myst/batleaf.tga
	qer_alphaFunc gequal 0.5

	{
		map textures/myst/batleaf.tga
		rgbGen vertex
		alphaGen const 1.0
	//	rgbGen exactVertex
		alphaFunc GE128
		depthWrite
	}
}

textures/myst/tree01_leaves
{
	qer_editorimage textures/myst/tree01_leaves.tga
	q3map_backShader textures/myst/tree01_leaves_back
	q3map_vertexScale 1.5
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nomarks
	{
		map textures/myst/tree01_leaves.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/myst/tree01_leaves_back
{
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	{
		map textures/myst/tree01_leaves.tga
		rgbGen const ( 0.225 0.225 0.225 )
		alphaFunc GE128		
	}	
}


textures/myst/vine06
{
	qer_editorimage textures/myst/vine06.tga
	q3map_backShader textures/myst/vine06_back
	q3map_vertexScale 2
	qer_alphafunc greater 0.5
	surfaceparm alphashadow
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	qer_trans 0.99
	{
		map textures/myst/vine06.tga
		rgbGen vertex
		depthWrite
		alphaFunc GE128		
	}	
}

textures/myst/vine06_back
{
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	{
		map textures/myst/vine06.tga
		rgbGen const ( 0.2 0.2 0.2 )
		alphaFunc GE128		
	}	
}

textures/myst/flameanim_g
{
	qer_editorimage textures/myst/g_flame6.tga
	q3map_lightimage textures/myst/g_flame6.tga
	qer_alphafunc greater 0.5
	surfaceparm nomarks
	surfaceparm nolightmap
	surfaceparm trans
	polygonOffset
	qer_trans 0.99
	cull none
	{
		animMap 10 textures/myst/g_flame1.tga textures/myst/g_flame2.tga textures/myst/g_flame3.tga textures/myst/g_flame4.tga textures/myst/g_flame5.tga textures/myst/g_flame6.tga textures/myst/g_flame7.tga textures/myst/g_flame8.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10	
	}	
	{
		animMap 10 textures/myst/g_flame2.tga textures/myst/g_flame3.tga textures/myst/g_flame4.tga textures/myst/g_flame5.tga textures/myst/g_flame6.tga textures/myst/g_flame7.tga textures/myst/g_flame8.tga textures/myst/g_flame1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sawtooth 0 1 0 10
	}	
	{
		map textures/myst/g_flameball.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin .6 .2 0 .6	
	}
}

textures/myst/myst_portal
{
	qer_editorimage textures/myst/myst_portal.jpg
	surfaceparm playerclip
	surfaceparm nolightmap
	portal
	{
		map textures/myst/myst_portal.jpg
 		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		alphaGen portal 1024
        }
}


textures/myst/mfloor
{
        qer_editorimage textures/myst/mfloor.jpg
	surfaceparm woodsteps
	implicitMap -
}

textures/myst/mice
{
	qer_trans 0.80
	qer_editorimage textures/myst/mice.jpg
	sort seethrough
        surfaceparm nodamage
	surfaceparm slick
	surfaceparm trans
	
	{
		map textures/effects/envmap_ice2.tga
		tcgen environment
		blendfunc blend
	}
	{
		map textures/snow_sd/icelake2.tga
		blendfunc blend
	}
	{
		map $lightmap
		blendfunc filter
		rgbGen identity
		depthWrite
	}
	{
		map textures/detail_sd/snowdetail_heavy.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		rgbgen identity
		tcMod scale 4 4
		detail
	}
}

textures/myst/mcolor01 
{ 
     cull none 
     deformVertexes wave 1 sin -0.5 0 0 1
     noPicmip 
     surfaceparm trans 
     { 
          map textures/sfx/construction.tga 
          blendFunc GL_SRC_ALPHA GL_ONE 
          rgbGen const ( 0.0 0.5 0.0 )
          tcGen environment 
          tcMod scroll 0.01 -0.01
     } 
}

textures/myst/kette
{
	qer_editorimage textures/myst/kette.tga
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	cull disable
	deformVertexes autosprite2
	{
		map textures/myst/kette.tga
		rgbGen identity
		depthWrite
		alphaFunc GE128
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
		depthFunc equal
	}
}

textures/myst/beam12
{
        q3map_surfacelight 1000
        surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	//qer_editorimage textures/myst/beam12.jpg
	cull none
	
        {
		map textures/myst/beam12.jpg
		blendFunc GL_ONE GL_ONE
                rgbgen wave triangle 1 1.4 0 6.3
                tcMod scale  -1 1
		tcMod scroll 2.6 0
	}
	{
		map textures/myst/beam12.jpg
		blendFunc GL_ONE GL_ONE
                rgbgen wave triangle 1 1.4 0 7.7
		tcMod scroll -1.1 0
	}			
}

textures/myst/beam1
{
	qer_editorimage textures/myst/beam1.jpg
	cull none	
	nocompress
	surfaceparm nomarks	
	surfaceparm nonsolid	
	surfaceparm pointlight
	surfaceparm trans
	deformVertexes wave 32 sin 0 2 0 0.2 
	tessSize 32
	{	
		map textures/myst/beam1.jpg
		blendFunc add
		// rgbGen wave sin 0 0.7 0 1 
		tcMod scroll 0.3 0
	}	
}

textures/myst/beam2
{
	qer_editorimage textures/myst/beam2.jpg
	cull none	
	nocompress
	surfaceparm nomarks	
	surfaceparm nonsolid	
	surfaceparm pointlight
	surfaceparm trans
	deformVertexes wave 32 sin 0 2 0 0.2 
	tessSize 32
	{	
		map textures/myst/beam2.jpg
		blendFunc add
		// rgbGen wave sin 0 0.7 0 1 
		tcMod scroll 0.3 0
	}	
}

textures/myst/erk
{
	qer_editorimage textures/myst/pmo.jpg
	nopicmip
	surfaceparm nomarks
	{
		animmap 2 textures/myst/pmo.jpg textures/myst/com.jpg 
	}
}
	
textures/myst/myst_mirror
{
	qer_editorimage textures/myst/myst_mirror.tga
	surfaceparm nolightmap
	portal
	{
		map textures/myst/myst_mirror.tga
		blendfunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		depthWrite
	}

}

textures/myst/mystgold
{

	qer_editorimage textures/myst/mystgold.tga
	q3map_surfacelight 300
	{
		map textures/myst/mystgold.tga
		rgbGen identity
		tcMod scale 0.25 0.25
		tcGen environment 
	}
	{
		map textures/myst/mystgold.tga
		blendfunc gl_one_minus_src_alpha gl_src_alpha
		rgbGen identity
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}
