//ITALIEN RAID


///////////
//TERRAIN//
///////////

textures/italien_raid/base
{
	nopicmips
	q3map_lightmapaxis z
	q3map_lightmapmergable
	q3map_nonplanar
	q3map_shadeangle 155	// 135 is also good.. some ppl use lower like 80-90...
	q3map_forcemeta
	//q3map_tcMod rotate 33
	q3map_tcGen ivector ( 256 0 0 ) ( 0 256 0 )
}

textures/italien_raid/cobb1
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/raid_cobb01_editor.tga
	{
		map textures/italien_raid/raid_cobb01.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/italien_raid/cobb2
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/raid_cobb02_editor.tga
	{
		map textures/italien_raid/raid_cobb02.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/italien_raid/raid_grass
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/raid_grass_editor.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/italien_raid/raid_grass.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/italien_raid/cobb1_2_grass_editor //
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/cobb1_2_grass_editor.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/italien_raid/raid_cobb01.tga
		rgbGen identity
	}
	{
		map textures/italien_raid/raid_grass.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/italien_raid/cobb2_2_grass_editor //
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/cobb2_2_grass_editor.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/italien_raid/raid_cobb02.tga
		rgbGen identity
	}
	{
		map textures/italien_raid/raid_grass.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}


textures/italien_raid/cobb2_sand_editor //
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/cobb2_sand_editor.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/italien_raid/raid_cobb02.tga
		rgbGen identity
	}
	{
		map textures/desert_sd/sand_dirt_medium.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

///////////////////////////////////////////////////////////////////////
//WINDOWS
///////////////////////////////////////////////////////////////////////


textures/italien_raid/m_window_church
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm glass
}

textures/italien_raid/m_window_01
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm glass
}

textures/italien_raid/m_window_02
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm glass
}

textures/italien_raid/raid_window_08
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm glass
}


textures/italien_raid/m_window_council
{
  qer_trans 0.85
  qer_editorimage textures/italien_raid/window_02.tga
	polygonOffset
	entityMergable
	surfaceparm nonsolid
	surfaceparm nomarks
	surfaceparm glass
	nopicmip
	{
		map textures/italien_raid/window_02.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		alphaGen vertex
	}
}

textures/italien_raid/library_gate
{
	surfaceparm metalsteps
	implicitMap -
}

textures/italien_raid/window_1_refl
{
	qer_editorimage textures/italien_raid/breakout_window_1.tga
	surfaceparm glass
	cull disable
	polygonOffset
	{
		map textures/italien_raid/env_01.tga
		tcGen environment
	}
	{
		map textures/italien_raid/breakout_window_1.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	{
		map $lightmap
		rgbGen Identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

	textures/italien_raid/m_window_gitter_light_03
{
	qer_editorimage textures/italien_raid/m_window_gitter_03_light.tga
	q3map_surfacelight 1400
	surfaceparm glass
	polygonOffset
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/m_window_gitter_03_light.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}






textures/italien_raid/m_window_gitter
{
    qer_editorimage textures/italien_raid/m_window_gitter.jpg
	surfaceparm glass
	implicitMap -	
}

	textures/italien_raid/m_window_gitter_light
{
	qer_editorimage textures/italien_raid/m_window_gitter_light.tga
	q3map_lightimage textures/italien_raid/m_window_gitter_blend.tga
	q3map_surfacelight 2800
	surfaceparm glass
	polygonOffset
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/m_window_gitter_light.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/m_window_gitter_blend.tga
		blendfunc GL_ONE GL_ONE
	}
}

///////////////////////////////////////////////////////////////////////
//Wood textures
///////////////////////////////////////////////////////////////////////

textures/italien_raid/m_wood_01
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/m_wood_02
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/m_wood_03
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/m_wood_04
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/m_wood_05
{
	surfaceparm woodsteps
	implicitMap -
}


textures/italien_raid/raid_wood_roof
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/raid_wood01
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/raid_wood02
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/raid_wood03
{
	surfaceparm woodsteps
	implicitMap -
}

textures/italien_raid/raid_wood04
{
	surfaceparm woodsteps
	implicitMap -
}

///////////////////////////////////////////////////////////////////////
//DOORS
///////////////////////////////////////////////////////////////////////

textures/italien_raid/m_old_door_single
{
	surfaceparm woodsteps
	implicitMap -
}







///////////////////////////////////////////////////////////////////////
//ROOFS
///////////////////////////////////////////////////////////////////////


textures/italien_raid/m_roof_01
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm roofsteps
}

textures/italien_raid/raid_roof02
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm roofsteps
}

textures/magic_roof/roof_metal_01
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
	surfaceparm roofsteps
}







textures/italien_raid/raid_door02_on
{
	qer_editorimage textures/italien_raid/raid_door02.tga
	q3map_surfacelight 200
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/raid_door02.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/raid_door02_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/italien_raid/raid_door02
{
	qer_editorimage textures/italien_raid/raid_door02.tga
	surfaceparm woodsteps
	implicitMap textures/italien_raid/raid_door02.tga
}



textures/italien_raid/m_window_church_on
{
	qer_editorimage textures/italien_raid/m_window_church.tga
	q3map_surfacelight 250
	surfaceparm glass
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/m_window_church.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/m_window_church_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}


textures/italien_raid/raid_window08_on
{
	qer_editorimage textures/italien_raid/raid_window08.tga
	q3map_surfacelight 150
	surfaceparm glass
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/raid_window08.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/raid_window08_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}


textures/italien_raid/m_old_window_04_on
{
	qer_editorimage textures/italien_raid/m_old_window_04.tga
	q3map_surfacelight 500
	surfaceparm glass
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/m_old_window_04.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/m_old_window_04_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/italien_raid/window01_sof_on
{
	qer_editorimage textures/italien_raid/window01_sof.tga
	q3map_surfacelight 100
	surfaceparm glass
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/window01_sof.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/window01_sof_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}


//FIREFLY texture and shader-testing

textures/italien_raid/pwin1_on
{
	qer_editorimage textures/italien_raid/p_win1.tga
	q3map_surfacelight 500
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/p_win1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/p_win1_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/italien_raid/pwin1
{
	qer_editorimage textures/italien_raid/p_win1.tga
	surfaceparm woodsteps
	implicitMap textures/italien_raid/p_win1.tga
}



textures/italien_raid/pwin2_on
{
	qer_editorimage textures/italien_raid/p_win2.tga
	q3map_surfacelight 1000
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/p_win2.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/italien_raid/p_win2.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}





// italienposter01
textures/italien_raid/italienposter01
{
	qer_editorimage textures/italien_raid/italienposter01
	qer_trans .7
	polygonOffset
	sort 6
	surfaceparm pointlight
	implicitBlend textures/italien_raid/italienposter01
}

// italienposter02
textures/italien_raid/italienposter02
{
	qer_editorimage textures/italien_raid/italienposter02
	qer_trans .5
	polygonOffset
	sort 6
	surfaceparm pointlight
	implicitBlend textures/italien_raid/italienposter02
}

// italienposter04
textures/italien_raid/italienposter04
{
	qer_editorimage textures/italien_raid/italienposter04
	qer_trans .5
	polygonOffset
	sort 6
	surfaceparm pointlight
	implicitBlend textures/italien_raid/italienposter04
}



///////////////////////////////////////////////////////////////
//SEWER
///////////////////////////////////////////////////////////////

textures/italien_raid/sewer_wall
{
	qer_editorimage textures/italien_raid/sewer_wall_gl.jpg
	{
		map textures/italien_raid/water1.tga
		tcmod scale -.25 -.25
		tcmod scroll .1 .04
		rgbgen wave sin .75 0 .5 2
	}
	{
		map textures/italien_raid/water1.tga
		blendFunc GL_one GL_ONE
		tcmod scale .25 .25
		tcmod scroll .1 .1
		rgbgen wave sin .75 0 0 2
	}
	{
		map textures/italien_raid/sewer_wall.tga
		blendFunc GL_one GL_src_color
		rgbgen identity
	}
	{
		rgbGen identity
		map $lightmap
		blendfunc gl_dst_color gl_zero
	} 
}

textures/italien_raid/light_yellow_m
{
	q3map_lightimage textures/italien_raid/light_yellow_m.tga
	q3map_surfacelight 10000		//50000
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm glass
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/italien_raid/light_yellow_m.tga
		blendFunc GL_DST_COLOR GL_ZERO
		depthWrite
		rgbGen identity
	}
	{
		map textures/italien_raid/light_yellow_m.tga
		blendFunc GL_ONE GL_ONE
	}
}

textures/italien_raid/spr_gate
{
	qer_editorimage textures/italien_raid/spr_gate.tga
	surfaceparm metal
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm monsterclip
	surfaceparm nonsolid
	cull none
	nopicmip
	{
		map textures/italien_raid/spr_gate.tga
		alphaFunc GE128
	}
}


textures/italien_raid/ //
{
	q3map_baseshader textures/italien_raid/base
	qer_editorimage textures/italien_raid/cobbstone2_sandy_editor.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/italien_raid/raid_cobb02.tga
		rgbGen identity
	}
	{
		map textures/temperate_sd/sandy_dirt_01.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}


textures/italien_raid/wall1
{
	implicitMap -
}



textures/italien_raid/gate01
{
	qer_editorimage textures/italien_raid/gate01.tga
	surfaceparm metal
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm monsterclip
	surfaceparm nonsolid
	cull none
	nopicmip
	{
		map textures/italien_raid/gate01.tga
		alphaFunc GE128
	}
}