//  
//			RivrStyx Lighting


textures/rivrstyx2/lightning1
{
        //q3map_surfacelight	1000
        surfaceparm	trans
surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nonsolid
	//q3map_lightimage textures/lightning/lightning3.tga
	qer_editorimage textures/alpha/lightning1.tga
		cull disable
	deformVertexes wave 128 sin 0 3 0 0.3
	{
		map textures/alpha/lightning1.tga
		//blendfunc gl_one_minus_dst_color gl_one_minus_src_color
		blendFunc GL_one GL_one
//alphaFunc GE128
		//rgbGen identity
                rgbGen wave inverseSawtooth -9 10 5 0.1
       		
		tcMod transform 1 0 0 1 0 0
		//tcMod transform 1 1 0 1 0 0
	}

}

textures/rivrstyx2/lightning2
{
        //q3map_surfacelight	1000
        surfaceparm	trans
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nonsolid
	//q3map_lightimage textures/lightning/lightning3.tga
	qer_editorimage textures/alpha/lightning2.tga
	cull disable
	deformVertexes wave 128 sin 0 3 0 0.3
	{
		map textures/alpha/lightning2.tga
		//blendfunc gl_one_minus_dst_color gl_one_minus_src_color
		blendFunc GL_one GL_one
//alphaFunc GE128
		//rgbGen identity
                rgbGen wave inverseSawtooth -9 10 5 0.05
            	
		tcMod transform 1 0 0 1 0 0
	}

}

// cathedrale_c21 lightning "flash" 
textures/rivrstyx2/flash_cathedrale_c21
{
	qer_editorimage textures/cathedrale_wall/cathedrale_c21.tga
	{
		map $lightmap
        	rgbgen identity 
	}
	
	{
		map textures/cathedrale_wall/cathedrale_c21.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity	
		
	}
//	{
//		map textures/cathedrale_wall/cathedrale_c21.tga 
//		blendFunc GL_one GL_one
//		rgbGen wave inverseSawtooth -9 10 5 0.1
//	}
}

textures/rivrstyx2/flash_ivy_c01
{
	qer_editorimage textures/rivralpha/ivy_c01.tga
	surfaceparm woodsteps
	surfaceparm nomarks
	surfaceparm playerclip
	surfaceparm trans
	surfaceparm alphashadow
	surfaceparm pointlight
    nomipmaps
    nopicmip
    cull disable
	implicitMask textures/rivralpha/ivy_c01.tga
}




// window lightning "flash" 
textures/rivrstyx2/flash_litwindow
{
	//surfaceparm	metalsteps
	surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/litwindow.tga
	{
		map textures/rivrstyx_window/litwindow.tga
		//tcgen environment
		//rgbGen wave inverseSawtooth -9 10 5 0.1
	}
	{
		map textures/rivrstyx_window/litwindow.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37
	}
}

textures/rivrstyx2/flash_windowimg2
{
	//surfaceparm	trans
	//surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/win_image3.tga
	//DeformVertexes autosprite2
	cull none
	{
		map textures/rivrstyx_window/win_image3.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37		
	}
}
textures/rivrstyx2/flash_eyes
{
	//surfaceparm	trans
	//surfaceparm pointlight
	qer_editorimage textures/rivrstyx/eye01.tga
	//DeformVertexes autosprite2
	cull none
	{
		map textures/rivrstyx/eye01.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		alphaFunc GE128
		AlphaGen wave Inversesawtooth -9 10 2 0.05	
	}
}
textures/rivrstyx2/flash_windowimgstill
{
	//surfaceparm	trans
	//surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/winimage4.tga
	//DeformVertexes autosprite2
	cull disable
	{
		map textures/rivrstyx_window/win_winimage4.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37
	}
}

textures/rivrstyx2/litwindow
{
	//surfaceparm	metalsteps
	surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/litwindow.tga
	{
		map textures/rivrstyx_window/litwindow.tga
		//blendFunc GL_ONE GL_one//GL_SRC_ALPHA GL_SRC_ALPHA
		rgbgen identity	
	}
}

//*****Intermittent flame***
textures/rivrstyx2/flameflash
{
	qer_editorimage textures/sfx/flame1.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	deformvertexes autosprite
	surfaceparm trans
	cull none
	q3map_surfacelight 30
//	{
//		map $whiteimage
//		tcgen environment
//		blendfunc filter
//	}


	{
		animMap 10 textures/sfx/flame1.tga textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth -12 12 5 0.05
		
	}	
	{
		animMap 10 textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga textures/sfx/flame1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sawtooth -9 12 5 0.05
	}	
	//{
	//	map textures/sfx/flameball.tga
	//	blendFunc GL_ONE GL_ONE
	//	rgbGen wave sawtooth -9 12 5 0.1	
	//}

}

///reg flame
textures/rivrstyx2/flameon
{
	qer_editorimage textures/sfx/flame1.tga
	surfaceparm nomarks
	surfaceparm nolightmap
	deformvertexes autosprite
	surfaceparm trans
	cull none
	q3map_surfacelight 75
	{
		animMap 10 textures/sfx/flame1.tga textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga
		blendFunc GL_ONE GL_ONE
		//rgbGen wave inverseSawtooth -12 12 5 0.05
		
	}	
}

//******Flame flicker*********
//rivrstyx
textures/rivrstyx2/flicker_stone
{
	qer_editorimage textures/rivrstyx_stonewall/stwl_t0512.tga
	
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/rivrstyx_stonewall/stwl_t0512.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.75 0.25 0 10
	
}
}

//******Flame flicker wood*********
//rivrstyx
textures/rivrstyx2/flicker_slatwood
{
	surfaceparm	woodsteps
	qer_editorimage textures/woodtex/woodslat.tga
	
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/woodtex/woodslat.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.75 0.25 0 10
	}
}

//******flame flicker concretemetal*********
// rivrstyx
textures/rivrstyx2/flicker_metal
{
	surfaceparm	metalsteps
	qer_editorimage textures/urban_metal/shipside.tga
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/urban_metal/shipside.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.75 0.25 0 10
}
}

// rivrstyx
textures/urban_metal/shipside
{
	surfaceparm metalsteps
	implicitMap -
}

//******light flicker concretebig*********
// rivrstyx
textures/rivrstyx2/flicker_concreteb
{
	qer_editorimage textures/rivrstyx_stonewall/concrete_big_3.tga
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/rivrstyx_stonewall/concrete_big_3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.75 0.25 0 10
}
}
//******light flicker concretefloor*********
// rivrstyx
textures/rivrstyx2/flicker_concretefl
{
	qer_editorimage textures/bricktex/concret.tga
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/bricktex/concret.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.75 0.25 0 10
}
}
//******light flicker wood*********
//rivrstyx
textures/rivrstyx2/flicker_slatwoodl
{
	surfaceparm	woodsteps
	qer_editorimage textures/woodtex/woodslat.tga
	
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/woodtex/woodslat.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.55 0.25 0 8
	}
}

//******light flicker concretemetal*********
// rivrstyx
textures/rivrstyx2/flicker_metall
{
	surfaceparm	metalsteps
	qer_editorimage textures/urban_metal/shipside.tga
{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/urban_metal/shipside.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen wave noise 0.55 0.25 0 8
}
}

//******jumppad*****
textures/rivrstyx2/eviljumppad
{
        surfaceparm nodamage
	surfaceparm	trans
	qer_editorimage textures/rivrstyx/demonltblackfinal_glow2.tga
	q3map_lightimage textures/rivrstyx/demonltblackfinal_glow2.tga
	q3map_surfacelight 400
{
		map textures/rivrstyx/demonltblackfinal_glow2.tga
		//AlphaGen wave Inversesawtooth 0.1 0.03 0.0 0.05
		blendFunc GL_ONE GL_one 
		tcMod turb 0.1 0.003 0.0 0.5

		//blendfunc GL_ONE GL_ONE
		//tcMod stretch sin 1.2 .8 0 0.5
		//rgbGen wave square .5 .5 0 1.0
       		//alphaFunc GE128
	}
}

textures/rivrstyx2/evil2
{
        surfaceparm nodamage
	surfaceparm	trans
	//qer_editorimage textures/rivrstyx/demonltblackfinal_glow2.tga
	//q3map_lightimage textures/rivrstyx/demonltblackfinal_glow2.tga
	qer_editorimage textures/rivrstyx/weirdghosthead2.tga
	q3map_lightimage textures/rivrstyx/weirdghosthead2.tga
	//q3map_surfacelight 400
{
		map textures/rivrstyx/weirdghosthead2.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 15 0 0.137
		alphaGen wave noise -3 4 9 2.37
		//rgbGen wave sawtooth -9 20 5 0.04
	}
//	{
//		map textures/rivrstyx/eyes.tga
		//map textures/rivrstyx/demonltblackfinal_glow2.tga
//		blendFunc GL_ONE GL_one 
//		
		//rgbGen wave inversesawtooth -9 20 2 0.08
//		rgbGen wave sawtooth -9 20 5 0.08
//	}

}
