//
//       _(I)(I)_	FRITZ THE FROG SAYS:
//      ( _ .. _ )		
//       `.`--'.'	The good old maps deserve it
//        )    (	to look better than before!
//    ,-./      \,-.	
//   ( _( ||  || )_ )	
//  __\ \\||--||'/ /__	
//  `-._//||\/||\\_.-'	Shader and textures of the river
//       `--'`--'	taken from Diego's "Praetoria".
//
// ______________________________________________________
//
// 	Map made by Zig-Zag in 2003
// 	Reworked by Sid & Etch in 2009
// ______________________________________________________


textures/caen_4/river
{
	nocompress
	cull none
	surfaceparm nomarks
	surfaceparm water
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm lightfilter
	{
		map textures/caen_4/water1.tga
		alphaGen const .75
		blendFunc blend
		tcMod scroll -.05 -.0
		tcMod scale 4 1
		tcMod scale .25 1
	}
	{
		map textures/caen_4/water2.tga
		blendFunc blend
		tcMod scroll -0.1 -0
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen Identity
		depthFunc equal
	}
}


textures/caen_4/tank1
{
	{
		map textures/caen_4/tank1.jpg
		rgbGen lightingDiffuse
	}
}

textures/caen_4/tank2
{
	{
		map textures/caen_4/tank2.jpg
		rgbGen lightingDiffuse
	}
}

textures/caen_4/tank3
{
	{
		map textures/caen_4/tank3.jpg
		rgbGen lightingDiffuse
	}
}

textures/caen_4/blitz_body
{
	{
		map textures/caen_4/blitz.jpg
		rgbgen lightingDiffuse
	}
}

textures/caen_4/blitz_window
{
	{
		map textures/effects/envmap_slate.tga
		rgbGen lightingdiffuse
		tcGen environment
	}
	{
		map textures/caen_4/blitz_window.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbgen lightingDiffuse
	}
}


textures/caen_4/w1
{
	{
		map textures/effects/envmap_slate.tga
		tcGen environment
	}
	{
		map textures/caen_4/w1_a.jpg
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/caen_4/w1.jpg
		blendFunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/caen_4/w2
{
	{
		map textures/effects/envmap_slate.tga
		tcGen environment
	}
	{
		map textures/caen_4/w2_a.jpg
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/caen_4/w2.jpg
		blendFunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/caen_4/w3
{
	{
		map textures/effects/envmap_slate.tga
		tcGen environment
	}
	{
		map textures/caen_4/w3_a.jpg
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/caen_4/w3.jpg
		blendFunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/caen_4/w4
{
	{
		map textures/effects/envmap_slate.tga
		tcGen environment
	}
	{
		map textures/caen_4/w4_a.jpg
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/caen_4/w4.jpg
		blendFunc GL_ONE GL_ONE
		rgbGen identity
	}
}


textures/caen_4/caen_sky
{
	nocompress
	qer_editorimage textures/caen_4/caen_sky.tga
	q3map_lightrgb 0.98 0.98 1.0
	q3map_sun  0.9 1.0 1.0 175 135 45
	q3map_skylight 175 3
	q3map_nofog
	q3map_lightsubdivide 512
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nodlight
	surfaceparm sky
	sunshader textures/caen_4/caen_sun
	skyparms - 200 -
	{	
		fog off
		map textures/caen_4/caen_sky.tga
		tcMod scale 2.5 2.5
		tcMod scroll 0.0015 -0.003
		rgbGen identityLighting
	}
}


textures/caen_4/caen_sun
{
	nocompress
	cull none
	q3map_nofog
	
	{
		map textures/caen_4/caensun.tga
		blendFunc blend
		rgbGen identityLighting
	}
}


textures/caen_4/grass_shader
{
	qer_editorimage textures/temperate_sd/grass_dense1.tga
	q3map_nonplanar
	q3map_shadeangle 120
	surfaceparm grasssteps
        surfaceparm landmine
	implicitMap textures/temperate_sd/grass_dense1.tga
}

textures/caen_4/carpet
{
	surfaceparm carpetsteps
	implicitMap -
}

textures/caen_4/allieddoor
{          
        surfaceparm metalsteps
	implicitMap -
}

textures/caen_4/door_salle
{
        surfaceparm woodsteps
        implicitMap -
}

textures/caen_4/wood_door
{
	surfaceparm woodsteps
	implicitMap -
}

textures/caen_4/metal
{          
        surfaceparm metalsteps
	implicitMap -
}

textures/caen_4/floorwood
{
	surfaceparm woodsteps
	implicitMap -
}



// TERRAIN

textures/caen_/terrain_base
{
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
	q3map_lightmapsize 512 512
	q3map_lightmapMergable
	q3map_lightmapsamplesize 16
	q3map_lightmapaxis z
	q3map_shadeangle 179
}

textures/caen_4/terrain_0
{
        qer_editorimage textures/temperate_sd/grass_path1.tga
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm grasssteps
	
	{

		map textures/temperate_sd/grass_path1.tga
		tcmod scale 2 2
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_1
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	
	{

		map textures/caen_4/riverstone.tga
		tcmod scale 2 2
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_2
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	
	{

		map textures/caen_4/path.tga
		tcmod scale 2 2
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_3
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	
	{

		map textures/caen_4/road.jpg
		tcmod scale 2 2
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_0to1
{
	q3map_baseshader textures/caen_/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/temperate_sd/grass_path1.tga
		tcmod scale 2 2
		alphaGen vertex	
	}
	{
		map textures/caen_4/riverstone.tga
		tcmod scale 2 2
		alphaGen vertex
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_0to2
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/temperate_sd/grass_path1.tga
		tcmod scale 2 2
		alphaGen vertex
                
		
	}
	{
		map textures/caen_4/path.tga
		tcmod scale 2 2
		alphaGen vertex
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_0to3
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/temperate_sd/grass_path1.tga
		tcmod scale 2 2
		alphaGen vertex
                
		
	}
	{
		map textures/caen_4/road.jpg
		tcmod scale 2 2
		alphaGen vertex
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_1to2
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/caen_4/riverstone.tga
		tcmod scale 2 2
		alphaGen vertex	
	}
	{
		map textures/caen_4/path.tga
		tcmod scale 2 2
		alphaGen vertex
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_1to3
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/caen_4/riverstone.tga
		tcmod scale 2 2
		alphaGen vertex
	}
	{
		map textures/caen_4/road.jpg
		tcmod scale 2 2
		alphaGen vertex
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}

textures/caen_4/terrain_2to3
{
	q3map_baseshader textures/caen_4/terrain_base
	surfaceparm landmine
	surfaceparm gravelsteps
	{
		map textures/caen_4/path.tga
		tcmod scale 2 2
		alphaGen vertex	
	}
	{
		map textures/caen_4/road.jpg
		tcmod scale 2 2
		alphaGen vertex
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map textures/detail_sd/sanddetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		detail
		tcmod scale 4 4
	}
}
