//Shader file for Mythtex01 (Hope and Glory) by Mike "Myth" Denby
//http://www.zaphox.net
//date: 18/Jan/2005


textures/mythtex01/flag
{
     qer_editorimage textures/mythtex01/flag.tga 
     cull disable
     surfaceparm alphashadow
     surfaceparm trans	
     surfaceparm nomarks
     tessSize 64
     deformVertexes wave 30 sin 0 3 0 .2
     deformVertexes wave 100 sin 0 3 0 .7
     
        {
            map textures/mythtex01/flag.tga
            alphaFunc GE128
		depthWrite
		rgbGen vertex
        }
        {
		map $lightmap
		rgbGen identity
		blendFunc filter
		depthFunc equal
	}
}




textures/mythtex01/floor-grate
{
	qer_editorimage textures/mythtex01/floor-grate.tga
	surfaceparm	metalsteps	
	surfaceparm trans	
	surfaceparm alphashadow
	cull none
	nopicmip
 {
	map textures/mythtex01/floor-grate.tga
	blendFunc GL_ONE GL_ZERO
	alphaFunc GE128
	depthWrite
	rgbGen identity
 }
  {
	map $lightmap
	rgbGen identity
	blendFunc GL_DST_COLOR GL_ZERO
	depthFunc equal
  }
}




textures/mythtex01/floor-jumppad
{
	qer_editorimage textures/mythtex01/floor-jumppad.tga
	surfaceparm nodamage
	q3map_surfacelight 300


	{
		map textures/mythtex01/floor-jumppad.tga
		rgbGen identity		
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc filter
	}
	{
		map textures/mythtex01/jpbright.tga
		blendfunc add
		rgbGen wave sin 0.2 0.2 0 1.5 
	}
	{
		clampMap textures/mythtex01/jp-cent.tga
		blendfunc add
		rgbGen wave square 0.5 0.5 0.25 1.5
		tcMod stretch sin 1.25 1.1 0 1.5
	}
	{
		clampmap textures/mythtex01/jp-flash.tga
		blendfunc add
		rgbGen wave square 0.5 0.5 0.25 1.5
		tcMod stretch sin 1.25 0.5 0 1.5
	}
	{
		clampMap textures/mythtex01/jp-wheel.tga
		blendfunc add
		rgbGen wave sin 0.4 0.1 0.25 1.5
		tcMod rotate 360
	}

}




textures/mythtex01/cobbles01-jumppad
{
	qer_editorimage textures/mythtex01/cobbles01-jumppad.tga
	surfaceparm nodamage
	q3map_surfacelight 300


	{
		map textures/mythtex01/cobbles01-jumppad.tga
		rgbGen identity		
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc filter
	}
	{
		map textures/mythtex01/jpbright.tga
		blendfunc add
		rgbGen wave sin 0.2 0.2 0 1.5 
	}
	{
		clampMap textures/mythtex01/jp-cent.tga
		blendfunc add
		rgbGen wave square 0.5 0.5 0.25 1.5
		tcMod stretch sin 1.25 1.1 0 1.5
	}
	{
		clampmap textures/mythtex01/jp-flash.tga
		blendfunc add
		rgbGen wave square 0.5 0.5 0.25 1.5
		tcMod stretch sin 1.25 0.5 0 1.5
	}
	{
		clampMap textures/mythtex01/jp-wheel.tga
		blendfunc add
		rgbGen wave sin 0.4 0.1 0.25 1.5
		tcMod rotate 360
	}

}




textures/mythtex01/cobbles02-jumppad
{
	qer_editorimage textures/mythtex01/cobbles02-jumppad.tga
	surfaceparm nodamage
	q3map_surfacelight 300


	{
		map textures/mythtex01/cobbles02-jumppad.tga
		rgbGen identity		
	}
	{
		map $lightmap
		rgbGen identity
		blendfunc filter
	}
	{
		map textures/mythtex01/jpbright.tga
		blendfunc add
		rgbGen wave sin 0.2 0.2 0 1.5 
	}
	{
		clampMap textures/mythtex01/jp-cent.tga
		blendfunc add
		rgbGen wave square 0.5 0.5 0.25 1.5
		tcMod stretch sin 1.25 1.1 0 1.5
	}
	{
		clampmap textures/mythtex01/jp-flash.tga
		blendfunc add
		rgbGen wave square 0.5 0.5 0.25 1.5
		tcMod stretch sin 1.25 0.5 0 1.5
	}
	{
		clampMap textures/mythtex01/jp-wheel.tga
		blendfunc add
		rgbGen wave sin 0.4 0.1 0.25 1.5
		tcMod rotate 360
	}

}




textures/mythtex01/window01-decal

{ 
	qer_editorimage textures/mythtex01/window01-decal.tga
	surfaceparm nolightmap 
	surfaceparm nomarks 
	surfaceparm trans 
	cull disable 
	polygonOffset
	qer_trans 0.6
	{ 
		map textures/mythtex01/window01-decal.tga
		blendfunc add
		rgbGen identity 
	} 
}




textures/mythtex01/window02-decal

{ 
	qer_editorimage textures/mythtex01/window02-decal.tga
	surfaceparm nolightmap 
	surfaceparm nomarks 
	surfaceparm trans 
	cull disable 
	polygonOffset
	qer_trans 0.6
	{ 
		map textures/mythtex01/window02-decal.tga
		blendfunc add
		rgbGen identity 
	} 
}




textures/mythtex01/window03-decal

{ 
	qer_editorimage textures/mythtex01/window03-decal.tga
	surfaceparm nolightmap 
	surfaceparm nomarks 
	surfaceparm trans 
	cull disable 
	polygonOffset
	qer_trans 0.6
	{ 
		map textures/mythtex01/window03-decal.tga
		blendfunc add
		rgbGen identity 
	} 
}
