//**********************************
//   		RivrStyx 2  
//**********************************
textures/rivr/fog
{
	qer_editorimage textures/sfx/fog_grey1.tga
	
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	
	fogparms ( 0.09411 0.09803 0.12549 ) 3192
}

textures/props/flags_temp
{
	surfaceparm alphashadow
	// qer_trans 0.50
//	deformVertexes wave 194 sin 0 2 0 .1
//	deformVertexes wave 30 sin 0 1 0 .3
//	deformVertexes wave 194 sin 0 1 0 .4
	deformVertexes wave 10 sin 0 2 0 .2
	cull twosided
	{
		map textures/props/flags_temp.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}

}


models/mapobjects/vacum/shad
{
//	cull twosided
	{
		map models/mapobjects/vacum/shad.tga
		blendfunc blend
		rgbGen lightingdiffuse
	}
}


textures/rivrstyx2/rivr_bat
{
	qer_editorimage textures/rivrstyx/res_bat.tga
    deformVertexes wave 10 sin 0 3 0 3
    deformVertexes move 500 -500 0   sawtooth 0 5 0 .1
    deformVertexes move 0 0 5  sin 0 5 0 .5
    cull disable
	{
		map textures/rivrstyx/res_bat.tga
                alphaFunc GE128
		depthWrite
		//tcmod scale .3 .3
		rgbGen identity
	}
}


textures/rivrstyx2/rs_waterrain
{
	qer_editorimage textures/liquids_sd/sea_bright_na.tga
//surfaceparm nolightmap
//surfaceparm nodlight
//qer_trans .5
	q3map_globaltexture
		surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm splash
	//surfaceparm nomarks	// don't play ripple effects when shooting into water
	//tesssize 512
	
	cull disable
	nofog
	deformVertexes wave 100 sin 0 2 0 .3	// the chop wave 160 sin 0 10 0 .3

	waterfogvars ( 0.1 0.35 0.1 ) 512
//	waterfogvars ( 0.1 0.1 0.1 ) .005
//	{
//		fog on
//		map $lightmap
//		blendFunc GL_dst_color GL_zero
//		rgbgen identity		
//	}

        
	{ 
		fog on
		map textures/liquids_sd/sea_bright_na.tga
		//blendFunc GL_one GL_ONE
		//alphagen const .5
		rgbgen wave sin .4 0 0 .05	
		tcmod scale .2 .1
		tcmod scroll .009 .008	//.03 .02
	}	
	{ 
		map textures/liquids_sd/sea_bright_na.tga
		blendFunc GL_src_alpha GL_ONE 
		alphagen const .5		
		tcmod scale .2 .2
		tcmod scroll -.009 -.008	//-.03 -.02
	}
	{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			rgbgen identity		
	}
}

textures/rivrstyx2/rs_waterripple
{
	qer_editorimage textures/rivrstyx_organics/rainring1.tga

qer_trans .5
	surfaceparm trans	
	surfaceparm nomarks	
	cull disable
        nopicmip	
deformVertexes wave 100 sin 0 2 0 .3	// the chop wave 160 sin 0 10 0 .3
//deformVertexes wave 128 sin 0 3 0 0.3
{
		animMap 8 textures/rivrstyx_organics/rainring1.tga textures/rivrstyx_organics/rainring2.tga textures/rivrstyx_organics/rainring.tga textures/rivrstyx_organics/rainring4.tga textures/rivrstyx_organics/rainring5.tga textures/rivrstyx_organics/rainring3.tga textures/rivrstyx_organics/rainring1.tga textures/rivrstyx_organics/rainring4.tga
		//blendFunc GL_ONE GL_ONE
		blendFunc gl_one_minus_dst_color gl_one_minus_src_color //GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		tcMod scale 3.3 3.3
		//alphaGen normalzfade 0.7 -2.0 -0.5
		rgbGen wave triangle .3 .5 .3 5
		rgbGen vertex
		//alphaGen vertex
		//tcMod transform 1 1 0 1 0 0
	}	
//	{
//		animMap 6 textures/rivrstyx_organics/rainring2.tga textures/rivrstyx_organics/rainring3.tga textures/rivrstyx_organics/rainring4.tga textures/rivrstyx_organics/rainring5.tga textures/rivrstyx_organics/rainring3.tga textures/rivrstyx_organics/rainring1.tga textures/rivrstyx_organics/rainring5.tga textures/rivrstyx_organics/rainring.tga
		//blendFunc GL_ONE GL_ONE
//		blendFunc gl_one_minus_dst_color gl_one_minus_src_color //gl_one_minus_dst_color gl_one_minus_src_color
//		tcMod scale 3 3	
//		rgbGen wave triangle .4 .5 .5 3
//		rgbGen vertex
		//alphaGen vertex
		//tcMod transform 1 1 0 1 0 0
//	}	

//{
//	clampmap textures/rivrstyx_organics/waterring2.tga
//		tcMod rotate 256 
//		blendFunc GL_ONE GL_ZERO
//		alphaFunc GE128
//		depthWrite
//		rgbGen identity
//  tcMod stretch sawtooth 1.2 .8 0 1.5
//	rgbGen wave sawtooth .5 .5 .25 1.5
//	 }

//{
//		map $lightmap
//		rgbGen identity
//		blendFunc GL_DST_COLOR GL_ZERO
//		depthFunc equal
//	}

}

textures/rivrstyx2/rivr_ghost2
{
	qer_editorimage textures/rivrstyx/ghost2.tga
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nonsolid
	cull disable
	deformVertexes wave 128 sin 0 3 0 0.3 
	{
		map textures/rivrstyx/ghost2.tga
		blendfunc GL_ONE GL_ONE
		//blendfunc gl_one_minus_dst_color gl_one_minus_src_color
//blendfunc GL_SRC_ALPHA gl_one_minus_dst_color
		rgbGen wave sin 0.6 0.4 0.1 0.3 
//rgbGen wave sin 0.6 0.4 0.1 0.3
		tcMod transform 1 1 0 1 0 0
		tcMod scale 1 1
		tcMod scroll -0.16 0.25
	}
	{
		map textures/rivrstyx/ghost2.tga
		blendfunc GL_ONE GL_ONE
		//blendfunc gl_one_minus_dst_color gl_one_minus_src_color  
		rgbGen wave sin 0.5 0.3 0.5 0.3 
//rgbGen wave sin 0.5 0.3 0.5 0.3
		tcMod transform 1 1 0 1 0 0
		tcMod scale 1 1
		tcMod scroll -0.13 0.15
	}
}

textures/rivrstyx2/rivr_ghost5
{
	qer_editorimage textures/rivrstyx/ghost3.tga
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nonsolid
	cull disable
	deformVertexes wave 128 sin 0 3 0 0.3 
//	deformVertexes move -400 400 0   sawtooth 0 5 0 .12
    deformVertexes move 0 0 5  sin 0 4 0 .5
	{
		clampmap textures/rivrstyx/ghost3.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		//blendfunc gl_one_minus_dst_color gl_one_minus_src_color
		rgbGen wave Triangle 0.6 0.2 0.6 0.2
		rgbGen wave Triangle 0.6 0.4 0.1 0.2
		//tcmod stretch Triangle 0.05 0.08 0.02 0.2
	}
}


textures/rivrstyx2/rivr_winimage4
{
	qer_editorimage textures/rivrstyx_window/winimage4.tga
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm nonsolid
	cull disable
	//deformVertexes wave 128 sin 0 3 0 0.3 
	//{
	//	map textures/rivrstyx_window/winimage4.tga
	//	blendfunc gl_one_minus_dst_color gl_one_minus_src_color
	//}
	{
		map textures/rivrstyx_window/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/rivr_fog
{
	qer_editorimage textures/liquids/kc_fogcloud3.tga
       // qer_trans 0.9
	surfaceparm	trans
	surfaceparm	nonsolid
	surfaceparm	fog
	surfaceparm	nolightmap
	q3map_globaltexture
	q3map_surfacelight 1
//	fogparms ( 0 .0 0 ) 768
	fogparms ( .15 .15 .17 ) 1500

		

	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale -.05 -.05
		tcmod scroll .01 -.01
		rgbgen identity
	}

	{
		map textures/liquids/kc_fogcloud3.tga
		blendfunc gl_dst_color gl_zero
		tcmod scale .05 .05
		tcmod scroll .01 -.01
		rgbgen identity
	}
}


textures/rivrstyx_wood/woodv1
{
	qer_editorimage textures/woodtex/woodv1.tga
	surfaceparm woodsteps
   	 implicitMap textures/woodtex/woodv1.tga
}

textures/rivrstyx2/blk_noimpact
{
	qer_editorimage textures/rivrstyx/blk2.tga
	//surfaceparm	noimpact
	surfaceparm	nolightmap
	//surfaceparm	nodamage
	//{
	//	map $lightmap
	//	rgbGen identity
	//}
	{
		map textures/rivrstyx/blk2.tga
		//blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/rivrstyx/rivr_rock1
{
	qer_editorimage textures/rivrstyx/mxrivrock.tga
	surfaceparm grasssteps
	//surfaceparm nolightmap
	//q3map_novertexshadows
	//q3map_forcesunlight	
	{
		map textures/rivrstyx/mxrivrock.tga
		rgbGen identity
	}
	{
		map $lightmap
        	blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity 
	}

}
textures/rivrstyx_organics/rivr_straw1
{
	qer_editorimage textures/rivrstyx_organics/Straw.tga
	surfaceparm grasssteps
	//surfaceparm nolightmap
	//q3map_novertexshadows
	//q3map_forcesunlight	
	{
		map textures/rivrstyx_organics/Straw.tga
		rgbGen identity
	}
	{
		map $lightmap
        	blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity 
	}

}

//******wood ladder*****
textures/rivrstyx/rivr_woodladder
{
	qer_editorimage textures/rivrstyx/rivr_ladder.tga
	surfaceparm woodsteps
   	 implicitMask textures/rivrstyx/rivr_ladder.tga
   // surfaceparm alphashadow
   // surfaceparm woodsteps
   // cull disable
   // {
   //     map textures/rivrstyx/rivr_ladder.tga
   //     alphaFunc GE128
   //     depthWrite
   //     rgbGen vertex
   // }
}

textures/skies/rivr_nightsky
{
	nocompress
	qer_editorimage textures/skies/sky_8.tga
	q3map_lightimage textures/skies/n_blue2.tga
	q3map_nofog
	q3map_globaltexture	//test
	q3map_lightsubdivide 256 //test
	q3map_sun 0.130 0.080 0.020 20 165 5
	q3map_sun 0.281 0.288 0.370 80 35 40
	q3map_sun 0.281 0.288 0.370 15 215 60
	q3map_sun 0.281 0.288 0.370 10 35 50
	q3map_sun 0.281 0.288 0.370 10 35 45
	q3map_sun 0.281 0.288 0.370 10 35 35
	q3map_sun 0.281 0.288 0.370 10 35 30
	q3map_sun 0.281 0.288 0.370 10 40 40
	q3map_sun 0.281 0.288 0.370 10 45 40
	q3map_sun 0.281 0.288 0.370 10 30 40
	q3map_sun 0.281 0.288 0.370 10 25 40
	q3map_surfacelight 50	//30

	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky

	skyparms - 512 -
	sunshader textures/skies_sd/full_moon2
	{
	//	fogoff
		map textures/skies_sd/wurzburg_clouds.tga
		tcMod scale 2.5 2.5
		tcMod scroll 0.003 -0.0015
		rgbGen identityLighting
	}
	{
//		fogoff
		map textures/skies_sd/ydnar_lightning.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37
		tcMod scale 3 3
		tcMod scroll 0.003 -0.0015
	}
	{
//		fog off
//		clampmap textures/skies_sd/battery_mask_ydnar.tga
		clampmap textures/skies_sd/wurzburg_fogmask.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 )
		rgbGen identitylighting
	}
}

//*******Dark SKy*******
//*******Terrain..cloud shadows
textures/rivrstyx2/cscloud_rock
{
	qer_editorimage textures/stone/pjrock9b_2.tga
	surfaceparm nolightmap
	q3map_novertexshadows
	q3map_forcesunlight

	{
		map textures/stone/pjrock9b_2.tga
		rgbGen vertex
		alphaGen vertex
		//tcmod scale 0.125 0.125 
	}
	{
                map textures/skies2/clouds.tga
		blendfunc filter
		detail
		tcmod scale 0.03 0.03
                tcMod scroll 0.02 0.02
		tcmod transform 1 0 1 1 1 1		
	}


}
// Clip Metal sound... solid
textures/rivrstyx2/csclipmetal
{
qer_editorimage textures/common/clip_metal.tga
	surfaceparm metalsteps
	surfaceparm nolightmap
	surfaceparm nodraw
	surfaceparm nomarks
	surfaceparm trans
	qer_trans 0.40
}
// Clip Metal sound... non-solid
textures/rivrstyx2/csmetalclip_nonsolid
{
qer_editorimage textures/common/clip_metal.tga
	surfaceparm metalsteps
//	surfaceparm nonsolid
	surfaceparm nolightmap
	surfaceparm nodraw
	surfaceparm nomarks
	surfaceparm trans
	qer_trans 0.40
}
// 		glass.
textures/rivrstyx2/csglass
{
qer_editorimage textures/rivrstyx/rglass.tga
	surfaceparm nolightmap
	surfaceparm nonsolid
	cull twosided
	{
		map textures/rivrstyx/rglass.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		map $lightmap
        }
}
textures/rivrstyx2/wirebarb
{
qer_editorimage textures/rivrstyx_metal/wire3.tga
	surfaceparm trans		
	cull none
	surfaceparm nomarks
	surfaceparm nodamage
        nopicmip

	{
		map textures/rivrstyx_metal/wire4_barb.tga
		//blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
       		 rgbGen vertex
	}
	//{
	//	map $lightmap
	//	rgbGen identity
	//	blendFunc GL_DST_COLOR GL_ZERO
	//	depthFunc equal
	//}
}

textures/rivrstyx_organics/spiderweb
{ 
qer_editorimage textures/rivrstyx_organics/spiderweb2.tga
surfaceparm trans 
//surfaceparm alphashadow
surfaceparm nomarks
surfaceparm nodamage
//surfaceparm nonsolid
surfaceparm noimpact
//surfaceparm nolightmap
//surfaceparm pointlight
sort underwater // hack to fix sort-order problems
// associated with non-opaque
// order-dependant blended surfaces
cull disable
{
map textures/rivrstyx_organics/spiderweb2.tga
blendFunc add 
//depthWrite
rgbGen vertex
}
	}

textures/rivrstyx_organics/spiderweb3
{ 
qer_editorimage textures/rivrstyx_organics/web3_2.tga
surfaceparm trans 
//surfaceparm alphashadow
surfaceparm nomarks
surfaceparm nodamage
//surfaceparm nolightmap
//surfaceparm nonsolid
surfaceparm noimpact
//surfaceparm pointlight
sort underwater // hack to fix sort-order problems
// associated with non-opaque
// order-dependant blended surfaces
cull disable
{
map textures/rivrstyx_organics/web3_2.tga
blendFunc add 
//depthWrite
        rgbGen vertex
}
}

textures/rivrstyx_organics/spiderweb2
{ 
qer_editorimage textures/rivrstyx_organics/web2_2.tga
surfaceparm trans 
//surfaceparm alphashadow
surfaceparm nomarks
surfaceparm nodamage
//surfaceparm nonsolid
surfaceparm noimpact
sort underwater // hack to fix sort-order problems
// associated with non-opaque
// order-dependant blended surfaces
cull disable
{
map textures/rivrstyx_organics/web2_2.tga
blendFunc add
//blendFunc GL_ONE GL_ONE
//depthWrite
        rgbGen vertex
}
}

textures/rivrstyx_organics/nateweb
{
	qer_editorimage textures/rivrstyx_organics/nateweb.tga
	surfaceparm noimpact
	surfaceparm nomarks
	surfaceparm nodamage
	surfaceparm trans
	sort underwater
//	surfaceparm nolightmap
	cull disable
	{
		map textures/rivrstyx_organics/nateweb.tga
		blendfunc add
		//depthWrite
        rgbGen vertex
	}

}


//Sparks down
textures/rivrstyx_organics/SouthSparks_1
{
	qer_editorimage textures/rivrstyx_organics/Spark.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nodamage
	cull none
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nodlight
	deformvertexes autosprite
	deformvertexes move 6.593898 -48.253815 27.218554 sawtooth 0 1 0.000000 3.584736
	{
		clampmap textures/rivrstyx_organics/Spark.tga
		tcMod rotate 40
		rgbGen wave sawtooth 1.000000 -16.661611 0.000000 0.215149423426102073803067422471933
		blendfunc add
	}
}

// 		glass.
textures/rivrstyx/rivrglass
{
	surfaceparm nolightmap
	surfaceparm nonsolid
	cull twosided
	{
		map textures/rivrstyx/rglass.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		map $lightmap
        }
}


textures/rivrstyx2/woodwin1_lit
{
surfaceparm nodamage
surfaceparm pointlight
//q3map_surfacelight 30
	qer_editorimage textures/ik_wood/ik_woodwin128192c.tga	
	{
		map $lightmap
       		rgbgen identity 
	}
	{
		map textures/ik_wood/ik_woodwin128192c.tga
		blendfunc gl_dst_color gl_zero
		rgbgen identity
	}
	
	{
		map textures/ik_wood/ik_woodwin128192c_glow.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 1 0 0 0
	}
}

textures/rivrstyx2/woodwin2_lit
{
surfaceparm nodamage
//q3map_surfacelight 30
surfaceparm pointlight
	qer_editorimage textures/ik_wood/ik_woodwin128160b.tga
	{
		map $lightmap
        	rgbgen identity 
	}
	{
		map textures/ik_wood/ik_woodwin128160b.tga
		blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
        
	{
		map textures/ik_wood/ik_woodwin128160b_glow.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 1 0 0 0
	}
	
}

//Rivr modified window
textures/rivrstyx2/rwoodwin1_lit
{
surfaceparm nodamage
//q3map_surfacelight 30
surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/litwindow2.tga	
	{
		map $lightmap
       		rgbgen identity 
	}
	{
		map textures/rivrstyx_window/litwindow2.tga
		blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
	
	{
		map textures/rivrstyx_window/litwindow2_glow.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin 1 0 0 0
	}
	

}


// window lightning "flash" 
textures/rivrstyx2/woodwin2_flash
{
surfaceparm nodamage
//q3map_surfacelight 30
surfaceparm pointlight
	qer_editorimage textures/ik_wood/ik_woodwin128192c.tga
	{
		map $lightmap
        	rgbgen identity 
	}
	
	{
		map textures/ik_wood/ik_woodwin128192c.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity	
		
	}
	{
		map textures/ik_wood/ik_woodwin128192c_glow.tga 
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37
	}

}

//Rivr modified window
textures/rivrstyx2/rwoodwin1_flash
{
surfaceparm nodamage
//q3map_surfacelight 30
//surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/litwindow2.tga	
	{
		map $lightmap
       		rgbgen identity 
	}
	{
		map textures/rivrstyx_window/litwindow2.tga
		blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity

	}
	
	{
		map textures/rivrstyx_window/litwindow2_glow.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/rwoodwin4_flash
{
surfaceparm nodamage
//q3map_surfacelight 30
//surfaceparm pointlight
	qer_editorimage textures/rivrstyx_window/woodwindrk256.tga	
	{
		map $lightmap
       		rgbgen identity 
	}
	{
		map textures/rivrstyx_window/woodwindrk256.tga
		blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
	{
		map textures/rivrstyx_window/woodwindrk256g.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37
	}
	
}

//**********Lights
textures/rivrstyx2/rlit1
{
surfaceparm nodamage
q3map_surfacelight 400
surfaceparm pointlight
	qer_editorimage textures/evil_a_lights/mtl_l1.tga	
	{
		map $lightmap
       		rgbgen identity 
	}
	{
		map textures/evil_a_lights/mtl_l1.tga
		blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity
	}
	{
		map textures/evil_a_lights/mtl_l1_fx.tga
		blendFunc GL_ONE GL_ONE
		//rgbGen wave inverseSawtooth -9 10 5 0.1
	}	
}

//*******light bulb texture
textures/rivrstyx2/rbulb
{
surfaceparm nodamage
q3map_surfacelight 400
surfaceparm pointlight
	qer_editorimage textures/common/white.tga
	{
		map $lightmap
       	blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity 
	}
	{
		map textures/common/white.tga
		//blendFunc blend
	}
}
//*******light bulb texture
textures/rivrstyx2/rbulb_flicker
{
surfaceparm nodamage
q3map_surfacelight 400
//surfaceparm pointlight
	qer_editorimage textures/common/white.tga
	
	{
		map textures/common/white.tga //textures/sfx/tesla1.tga
		blendFunc add //GL_DST_COLOR GL_DST_COLOR
		//rgbGen wave noise 0.25 0.25 0 8
		rgbGen wave noise 0.25 0.25 0 10
		//sawtooth 0 1 0 5
		tcmod scale 1 .5
		tcmod turb 0 .1 0 1
		//tcMod scroll -1 -1
	}
	{
		map textures/effects/tinfx2d.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
	}
}

textures/rivrstyx/rs_waterfall
{
	qer_editorimage textures/rivrstyx/rs_water.tga
//surfaceparm nodlight
surfaceparm nolightmap
surfaceparm nonsolid
	cull disable
	deformVertexes wave 100 sin 0 1 0 1.5
	{
		map textures/rivrstyx/rs_water.tga  //rivrstyx/rs_water.tga
		blendfunc blend
		//rgbGen Vertex
		//tcmod scale .2 .2
		tcMod scroll 0 -2
		alphaGen Vertex
	}
//	{
//			map $lightmap
//			blendFunc GL_dst_color GL_zero
//			rgbgen identity		
//	}


}
// Clip Metal sound... solid
textures/rivrstyx_metal/metalclip_nonsolid
{
	surfaceparm metalsteps
	surfaceparm nolightmap
	surfaceparm nodraw
	surfaceparm nomarks
	surfaceparm trans
	qer_trans 0.40
}


textures/skies/darksun2
{
	qer_editorimage textures/skies/black_up.tga

	surfaceparm noimpact
	surfaceparm nolightmap

	q3map_surfacelight 55
	q3map_sun 3 1 2 50 240 50  
	skyparms env/black - -
}
textures/sfx/rivr_arrow2
{
	qer_editorimage textures/sfx/launchpad_arrow.tga
	cull none
        surfaceparm nolightmap
        surfaceparm trans
        surfaceparm nomarks
		{	
			map textures/sfx/launchpad_arrow.tga		
			//blendfunc gl_src_alpha gl_one
			//alphaFunc GE128	
			blendFunc GL_ONE GL_ZERO
			tcMod scale 1 1
			alphaFunc GE128
			depthWrite
			//rgbGen identity
			tcmod scroll 0 1
			//rgbgen wave square 0 1 0 2
			//alphagen wave square 0 1 .1 2
		}
}
//lightbulb
textures/rivrstyx2/bulbcircle_steady
{
	qer_editorimage textures/misc/bulbcircle.tga
	DeformVertexes autosprite
	surfaceparm nodamage
	q3map_surfacelight 400
	//surfaceparm pointlight
	cull disable
	{
		map $lightmap
       	blendfunc GL_ZERO GL_ONE
		//rgbgen identity 
	alphaFunc GE128
	}
	{
		map textures/misc/bulbcircle.tga
		//blendFunc blend
	alphaFunc GE128
	}
}

textures/rivrstyx2/bulbcircle_flicker
{
	qer_editorimage textures/misc/bulbcircle.tga
	DeformVertexes autosprite
	surfaceparm nodamage
	q3map_surfacelight 400
	//surfaceparm pointlight
	cull none
	{
		map textures/misc/bulbcircle.tga
		blendFunc add 
		//rgbGen wave noise 0.25 0.25 0 8
		rgbGen wave noise 0.25 0.25 0 10
		//sawtooth 0 1 0 5
		tcmod scale 1 .5
		tcmod turb 0 .1 0 1
		//tcMod scroll -1 -1
		alphaFunc GE128

	}
	{
		map textures/effects/tinfx2d.tga
		tcGen environment
		blendfunc GL_ONE GL_ONE
		alphaFunc GE128
	}
}
textures/rivrstyx2/tire_hole
{
	qer_editorimage textures/misc/tiremag.tga
//cull none
	{
		map textures/misc/tiremag.tga
		rgbgen identity
	//alphaFunc GE128
	}
	{
		map $lightmap
        	blendfunc gl_dst_color gl_zero
		rgbgen identity 
//alphaFunc GE128
	}
{
		map textures/misc/tiremag_lit.tga
		blendfunc add
		rgbGen vertex
		rgbGen wave square .25 .25 .25 .75
	}

}
textures/rivrstyx2/tire_side
{
	qer_editorimage textures/misc/tire1.tga
	//cull none
	{
		map textures/misc/tire1.tga
		rgbgen identity
	}
	{
		map $lightmap
        	blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity 
	}

}
textures/rivrstyx2/straw_dirt
{
	qer_editorimage textures/rivrstyx_organics/Straw.tga
	surfaceparm landmine
	surfaceparm grasssteps	
	{
		map textures/rivrstyx_organics/Straw.tga
		rgbGen vertex
		alphaGen vertex
		//tcmod scale 0.125 0.125
	}
	{
		map textures/organics/dirt2.tga
		rgbGen vertex
		alphaGen vertex
                tcmod scale 1.5 1.5
		blendFunc GL_ONE GL_ONE
	}
	{
		map $lightmap
        	blendfunc GL_DST_COLOR GL_ZERO
		rgbgen identity 
	}
}

//*****common***
textures/common/clip_wood
{
    qer_editorimage textures/common/clip_wood.tga
    qer_trans 0.3
    surfaceparm nodraw
    surfaceparm nomarks
    surfaceparm playerclip
    surfaceparm trans
    surfaceparm woodsteps
}

//******EFFECTS
textures/rivrstyx2/rivr_plywood
{
	qer_editorimage textures/woodtex/plywood.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	} 
	{
		map textures/woodtex/plywood.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}
textures/rivrstyx2/rivr_woodslat
{
	qer_editorimage textures/woodtex/woodslat.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/woodtex/woodslat.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity		
	}
}

textures/rivrstyx2/rivr_plnk_t10
{
	qer_editorimage textures/rivrstyx_wood/plnk_t10.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/rivrstyx_wood/plnk_t10.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/rivrstyx2/rivr_wd_tile_drk
{
	qer_editorimage textures/evil_3floors/wd_tile_drk.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/evil_3floors/wd_tile_drk.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/rivrstyx2/rivr_woodvfloor3
{
	qer_editorimage textures/evil_1floors/woodvfloor3.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/evil_1floors/woodvfloor3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/rivrstyx2/vertwood
{
	qer_editorimage textures/rivrstyx_wood/vertwood.tga
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm woodsteps
	{	
	map textures/rivrstyx_wood/vertwood.tga
	blendFunc GL_ONE GL_ZERO
	alphaFunc GE128
	depthWrite
	rgbGen identity
	}
	{		
	map $lightmap	
	rgbGen identity	
	blendFunc GL_DST_COLOR GL_ZERO
	depthFunc equal	
	}
}

textures/rivrstyx2/rivr_woodvfloor3
{
	qer_editorimage textures/evil_1woods/woodvfloor3.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/evil_1woods/woodvfloor3.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/rivrstyx2/rivr_wood_pnl_drty
{
	qer_editorimage textures/evil_1woods/wood_pnl_drty.tga
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/evil_1woods/wood_pnl_drty.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/rivrstyx2/carpet_drty
{
	qer_editorimage textures/evil_1floors/carpet_drty.tga
	surfaceparm carpetsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/evil_1floors/carpet_drty.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}
textures/rivrstyx2/carpet_drty_blood
{
	qer_editorimage textures/evil_1floors/carpet_drty_blood2.tga
	surfaceparm carpetsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/evil_1floors/carpet_drty_blood2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}
textures/rivrstyx2/rivr_tree3_lightmap
{
qer_editorimage textures/rivrstyx/rivrtree2.tga
cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
//	surfaceparm steps
//	surfaceparm nonsolid
	surfaceparm playerclip
//	surfaceparm pointlight
//	surfaceparm trans
	implicitMask textures/rivrstyx/rivrtree2.tga
    //removelightmap info
   // surfaceparm nolightmap
  //  qer_trans 0.8
   // surfaceparm alphashadow
  //  surfaceparm nomarks
   // surfaceparm nonsolid
//	nomipmaps
   //	nopicmip
//	cull disable
	//deformVertexes wave 10 sin 0 2 0 0.2
//	{
//		map $lightmap
//		rgbGen identity
	//	depthFunc equal
//   	 } 
//	{
//        map textures/rivrstyx/rivrtree2.tga
      		//blendFunc GL_ONE GL_ZERO
//		blendFunc GL_DST_COLOR GL_ZERO
//		alphaFunc GE128
		//depthWrite
//		rgbGen identity
//	}
}

textures/rivrstyx2/rivr_blkfog
{
qer_editorimage textures/rivrstyx/blk2.tga
qer_nocarve
surfaceparm	trans
surfaceparm	nonsolid
surfaceparm	fog
surfaceparm	nolightmap
//fogparms ( .15 .15 .17 ) 128
fogparms ( 0 0 0 ) 175
}

//rain
textures/rivrstyx2/rain2
{
qer_editorimage textures/rivrstyx_organics/rain6.tga
        surfaceparm trans	
        surfaceparm nomarks	
        surfaceparm nonsolid
	//surfaceparm nolightmap
        qer_trans .5
        deformVertexes move 3 1 0  sin 0 5 0 0.2
        deformVertexes move .6 3.3 0  sin 0 5 0 0.4
        deformVertexes wave 30 sin 0 10 0 .2
	cull disable
       // nopicmip
	{
		map textures/rivrstyx_organics/rain6.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
 
                tcMod Scroll .05 -8
                tcMod turb .01 .07 0 -.1
		alphaGen vertex
	}
        {
		map textures/rivrstyx_organics/rain6.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA  //gl_one_minus_dst_color gl_one_minus_src_color 
               	 tcMod Scroll .01 -6.3
		tcMod turb .02 .04 0 .2
                alphaGen vertex
	  }   
}


textures/terrain/dirt_m03_mung
{
	surfaceparm landmine
	surfaceparm grasssteps
	implicitMap -
	
}


textures/terrain/dirt_m03
{
	surfaceparm landmine
	surfaceparm grasssteps
	implicitMap -
	
}

textures/rivrstyx2/killerfan
{
	qer_editorimage textures/sfx/fan.tga
	cull none
	nopicmip
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	{
		clampmap textures/sfx/fan.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		rgbGen identity
		tcMod rotate 1500
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		depthFunc equal
		rgbGen identity
	}
}

levelshots/resurrection_cc_automap
{
    nopicmip
    nocompress
    nomipmaps
    {
        clampmap levelshots/resurrection_cc.tga
        depthFunc equal
        rgbGen identity
    }
}

levelshots/resurrection_cc_trans
{
    nopicmip
    nocompress
    nomipmaps
    {
        clampmap levelshots/resurrection_cc.tga
        blendfunc blend
        rgbGen identity
        alphaGen vertex
    }
}