//**********************************
//   		Rivr   
//**********************************



//************
//** plants **
//************
textures/rivrstyx_plant/plant1
{
	surfaceparm trans
	deformvertexes autosprite		
	cull none
        nopicmip

	{
		map textures/rivrstyx_plant/plant1.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	}

textures/rivrstyx_plant/plant2
{
	surfaceparm trans
	deformvertexes autosprite		
	cull none
        nopicmip

	{
		map textures/rivrstyx_plant/plant2.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	}

textures/rivrstyx_plant/plant3
{
	surfaceparm trans
deformvertexes autosprite		
	cull none
        nopicmip

	{
		map textures/rivrstyx_plant/plant3.tga
		blendFunc GL_ONE GL_ZERO
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
	}
textures/rivrstyx_plant/potleaf1
{
	qer_editorimage textures/rivrstyx_plant/potleaf1.tga
	DeformVertexes autosprite2
	surfaceparm nodamage
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm metalsteps
	surfaceparm pointlight
	surfaceparm trans
	implicitMask -
//	{
//		map textures/rivrstyx_plant/potleaf1.tga
	//	blendFunc GL_SRC_ALPHA GL_ONE
//		alphaFunc GE128
		//rgbGen wave noise 0.75 0.25 0 10
//		rgbgen identity
//	alphaFunc GE128
//	}
//	{
//		map $lightmap
 //       	blendfunc gl_dst_color gl_zero

//	}
}

textures/rivrstyx_plant/potleaf2
{
	surfaceparm nolightmap
	surfaceparm nodamage
	//deformVertexes wave 100 sin 0 2 0 .7
	sort additive
               cull none //disable
  //sort 10
	{
		map textures/rivrstyx_plant/potleaf1.tga
                 blendfunc gl_src_alpha gl_one_minus_src_alpha
        }	

}

//Trees
models/mapobjects/tree/trunck2
{
	q3map_clipModel
	{
		map models/mapobjects/tree/trunck2.tga
		rgbGen vertex	
	}

}

models/mapobjects/tree/branch
{
	q3map_clipModel
     cull disable
     deformVertexes wave 100 sin 0 .1 0 .2
      surfaceparm	trans
        {
                map models/mapobjects/tree/branch.tga
                alphaFunc GE128
		depthWrite
		//rgbGen identity
                //rgbGen lightingDiffuse
                rgbGen vertex
        }


}

models/mapobjects/tree/branch3a
{
	surfaceparm alphashadow
	q3map_clipModel

	deformVertexes wave 194 sin 0 2 0 .1
	deformVertexes wave 30 sin 0 1 0 .3
	deformVertexes wave 194 sin 0 1 0 .4

	cull twosided

	{
            map models/mapobjects/tree/branch3.tga


		alphaFunc GE128
		depthWrite
		rgbGen vertex

	}
}


models/mapobjects/tree/branch4
{
	surfaceparm alphashadow
	q3map_clipModel

	deformVertexes wave 194 sin 0 2 0 .1
	deformVertexes wave 30 sin 0 1 0 .3
	deformVertexes wave 194 sin 0 1 0 .4

	cull twosided

	{
            map models/mapobjects/tree/branch4.tga


		alphaFunc GE128
		depthWrite
		rgbGen vertex

	}
}

models/mapobjects/tree/branch5
{
	surfaceparm alphashadow
	q3map_clipModel

	deformVertexes wave 194 sin 0 2 0 .1
	deformVertexes wave 30 sin 0 1 0 .3
	deformVertexes wave 194 sin 0 1 0 .4

	cull twosided

	{
            map models/mapobjects/tree/branch5.tga


		alphaFunc GE128
		depthWrite
		rgbGen vertex

	}
}


models/mapobjects/tree/branch6
{
	surfaceparm alphashadow
	q3map_clipModel

	deformVertexes wave 194 sin 0 2 0 .1
	deformVertexes wave 30 sin 0 1 0 .3
	deformVertexes wave 194 sin 0 1 0 .4

	cull twosided

	{
            map models/mapobjects/tree/branch6.tga


		alphaFunc GE128
		depthWrite
		rgbGen vertex

	}
}

models/mapobjects/tree/pine3
{
	surfaceparm alphashadow
	q3map_clipModel

	deformVertexes wave 194 sin 0 2 0 .1
	deformVertexes wave 30 sin 0 1 0 .3
	deformVertexes wave 194 sin 0 1 0 .4

	cull twosided

	{
            map models/mapobjects/tree/pine3.tga


		alphaFunc GE128
		depthWrite
		rgbGen identity

	}
}

models/mapobjects/tree/branch8
{
	surfaceparm alphashadow
	q3map_clipModel

	deformVertexes wave 194 sin 0 2 0 .1
	deformVertexes wave 30 sin 0 1 0 .3
	deformVertexes wave 194 sin 0 1 0 .4

	cull twosided

	{
            map models/mapobjects/tree/branch8.tga


		alphaFunc GE128
		depthWrite
		rgbGen vertex

	}
}


models/mapobjects/tree/trunck3
{
	q3map_clipModel
	{
		map models/mapobjects/tree/trunck3.tga
		rgbGen identity	
	}
}