textures/mtn/terrain_base
{
	nopicmips
	q3map_lightmapaxis z
	q3map_lightmapmergable
	q3map_shadeangle 90
	q3map_lightmapsize 512 512
	q3map_tcGen ivector ( 1024 0 0 ) ( 0 1024 0 )
}

textures/mtn/terrain_0
{
	q3map_baseshader textures/mtn/terrain_base
	qer_editorimage textures/water_test/mxrocksand.jpg
	{
		map textures/water_test/mxrocksand.jpg
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/mtn/terrain_1
{
	q3map_baseshader textures/mtn/terrain_base
	qer_editorimage textures/water_test/sand9.tga
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/water_test/sand9.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/mtn/terrain_0to1
{
	q3map_baseshader textures/mtn/terrain_base
	qer_editorimage textures/water_test/mxrocksand.jpg
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/water_test/mxrocksand.jpg
	}
	{
		map textures/water_test/sand9.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

//water shaders adapted from NOP's Saberpeak tutorial
//

textures/mtn/deepwater01
{
	qer_editorimage textures/mtn/deepwater01.tga
//	deformVertexes wave 160 sin 0 10 0 .3
	deformVertexes wave 80 sin 0 5 0 .3
	cull none
	surfaceparm water
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	surfaceparm pointlight
	{ 
		map textures/mtn/mediumwater01.tga
		blendFunc blend
		alphaGen vertex
		tcmod scroll 0 -.1
		depthWrite
	}
	{
		map textures/mtn/deepwater01.tga
		blendFunc blend
		rgbGen vertex
		tcmod scroll 0 -.1 
	}
}

textures/mtn/deepwater01b
{
	qer_editorimage textures/mtn/deepwater01b.tga
//	deformVertexes wave 160 sin 0 10 0 .3
	deformVertexes wave 80 sin 0 5 0 .3
	cull none
	surfaceparm water
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm nomarks
	surfaceparm pointlight
	{ 
		map textures/mtn/mediumwater01b.tga
		blendFunc blend
		alphaGen vertex
		tcmod scroll 0 -.1
		depthWrite
	}
	{
		map textures/mtn/deepwater01b.tga
		blendFunc blend
		rgbGen vertex
		tcmod scroll 0 -.1 
	}
}

