///////orleans////////

textures/ma_dod/cobbergrass

{ 
   qer_editorimage textures/ma_dod/cobbergrass.jpg  
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   //surfaceparm landmine 
   
   { 
      map textures/ma_dod/cobb_grass.tga
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity 
   } 
}


textures/ma_dod/grass_cobb
{ 
   qer_editorimage textures/ma_dod/grass_cobb.jpg  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   //surfaceparm landmine 
   //surfaceparm grasssteps   
   { 
	map textures/ma_dod/cobb_grass.tga
      rgbGen identity 
   } 
   { 
       map textures/ma_dod/ma_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/orleans/dirt_cobber
{ 
   qer_editorimage textures/orleans/dirt_cobber.jpg  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   //surfaceparm landmine 
   //surfaceparm grasssteps   
   { 
	map textures/orleans/pavement_orleans.jpg
      rgbGen identity 
   } 
   { 
       map textures/temperate_sd/dirt3.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/orleans/orleans_cobber

{ 
   qer_editorimage textures/orleans/orleans_cobber.jpg  
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   //surfaceparm landmine 
   
   { 
      map textures/orleans/pavement_orleans.jpg 
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity 
   } 
}


textures/orleans/sand_stone
{ 
   qer_editorimage textures/orleans/sand_stone.jpg  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   surfaceparm landmine 
   surfaceparm grasssteps 
   	     
   { 
	map textures/orleans/stone_floor_brown.jpg
      rgbGen identity 
   } 
   { 
       map textures/orleans/sand.jpg
     	 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA             
       rgbGen identity 
       alphaGen vertex 
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity
   } 
}



textures/orleans/orleans_stone

{ 
   qer_editorimage textures/orleans/orleans_stone.jpg  
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   //surfaceparm landmine 
   
   { 
      map textures/orleans/stone_floor_brown.jpg
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity 
   } 
}



textures/orleans/grass_dirt
{ 
   qer_editorimage textures/orleans/grass_dirt.jpg  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   //surfaceparm landmine 
   //surfaceparm grasssteps   
   { 
	map textures/temperate_sd/dirt3.tga
      rgbGen identity 
   } 
   { 
       map textures/temperate_sd/grass_dense1.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/orleans/dirt_sand
{ 
   qer_editorimage textures/orleans/dirt_sand.jpg  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   surfaceparm landmine 
   //surfaceparm grasssteps   
   { 
	map textures/temperate_sd/dirt3.tga
      rgbGen identity 
   } 
   { 
       map textures/orleans/sand.jpg
     	 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA             
       rgbGen identity 
       alphaGen vertex 
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity
   } 
}



textures/orleans/grass_sand
{ 
   qer_editorimage textures/orleans/grass_sand.jpg  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   surfaceparm landmine 
   surfaceparm grasssteps   
   { 
	map textures/temperate_sd/grass_dense1.tga
      rgbGen identity 
   } 
   { 
       map textures/orleans/sand.jpg
     	 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA             
       rgbGen identity 
       alphaGen vertex 
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity
   } 
}



textures/orleans/base
{
	nopicmips
	q3map_lightmapaxis z
	q3map_lightmapmergable
	q3map_nonplanar
	q3map_shadeangle 80	// 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/orleans/dirt_m
{
	q3map_baseshader textures/orleans/base
	qer_editorimage textures/orleans/dirt_m.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/temperate_sd/dirt3.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/orleans/sand_ed
{
	
	qer_editorimage textures/orleans/sand_ed.jpg
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/orleans/sand_ed.jpg
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/orleans/grass_m
{
	q3map_baseshader textures/orleans/base
	qer_editorimage textures/orleans/grass_m.jpg

	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/temperate_sd/grass_dense1.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}

textures/orleans/sand
{ 
   qer_editorimage textures/orleans/sand.jpg  
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 256 0 0 ) ( 0 256 0 )
   surfaceparm landmine 
   surfaceparm grasssteps 
   { 
      map textures/orleans/sand.jpg 
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity 
   } 
}


// Alpha Brushes

textures/orleans/m_alpha_0
{
  //qer_editorimage textures/orleans/m_alpha_0.tga
  qer_trans 0.75
  q3map_alphamod volume
  q3map_alphamod scale 0
  surfaceparm nonsolid
  surfaceparm nodraw
  surfaceparm trans
 }
 
textures/orleans/orleans_rock_x // x-projection
{ 
   qer_editorimage textures/orleans/orleans_rock_x.jpg 
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 0 512 0 ) ( 0 0 512 )
   //surfaceparm landmine 
   //surfaceparm grasssteps 
   { 
      map textures/orleans/orleans_rock.tga 
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity 
   } 
}
 
 
 
textures/orleans/orleans_rock_y  // y-projection
{ 
   qer_editorimage textures/orleans/orleans_rock_y.tga  
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 0 0 512 ) ( 512 0 0 )
   //surfaceparm landmine 
   //surfaceparm grasssteps 
   { 
      map textures/orleans/orleans_rock.tga
   } 
   { 
       map $lightmap 
       blendFunc GL_DST_COLOR GL_ZERO
       rgbGen identity 
   } 
}


textures/orleans/orleans_rock_xy //x-y blending
{ 
   qer_editorimage textures/orleans/orleans_rock_xy.tga  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 0 512 0 ) ( 0 0 512 )
   //surfaceparm landmine 
   //surfaceparm grasssteps   
   { 
      map textures/orleans/orleans_rock.tga
	tcGen vector ( 0  0 0.00195 ) ( 0.00195 0 0 )
      rgbGen identity 
   } 
   { 
	 map textures/orleans/orleans_rock.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/orleans/sand_mountain // x-blending for top & bottom cliffs
{ 
   qer_editorimage textures/orleans/sand_mountain.tga  
    
   q3map_lightmapsampleoffset 16 
   q3map_lightmapmergable 
   q3map_shadeangle 170
   q3map_nonplanar 
   q3map_forcemeta 
   q3map_tcgen ivector ( 0 512 0 ) ( 0 0 512 )
   surfaceparm landmine 
   //surfaceparm grasssteps   
   { 
      map textures/orleans/sand.tga 
	rgbGen identity 
   } 
   { 
       map textures/orleans/orleans_rock.tga   
     	 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA             
       rgbGen identity 
       alphaGen vertex 
      } 
      { 
             map $lightmap 
             blendFunc GL_DST_COLOR GL_ZERO
             rgbGen identity
      } 
}



////////////////////////
////////ALPHACHANNEL////
////////////////////////


textures/orleans/poster_french_ladder
{
	qer_trans 0.85
	qer_editorimage textures/orleans/poster_french_ladder.tga
	cull disable
	sort 6
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans
	surfaceparm nonsolid

	implicitMask textures/orleans/poster_french_ladder.tga
	}



textures/orleans/ma_cob_black
{
  qer_trans 0.85
  qer_editorimage textures/orleans/ma_cob_black.tga
	polygonOffset
	entityMergable
	surfaceparm nonsolid
	surfaceparm nomarks
	nopicmip
	{
		map textures/orleans/ma_cob_black.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
		alphaGen vertex
	}
}


textures/orleans/rustwall
{
	qer_trans 0.85
	qer_editorimage textures/orleans/rustwall.tga
	cull disable
	sort 6
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans
	surfaceparm nonsolid
	implicitMask textures/orleans/rustwall.tga
	{
	 map textures/orleans/rustwall.tga
	 depthwrite
	 alphaFunc GE128
	 rgbGen vertex
	}
}


textures/orleans_cod/stone_corners
{
	qer_trans 0.85
	qer_editorimage textures/orleans_cod/stone_corners.tga
	cull disable
	sort 6
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	//surfaceparm pointlight
	surfaceparm trans
	surfaceparm nonsolid
	implicitMask textures/orleans_cod/stone_corners.tga
	{
	 map textures/orleans_cod/stone_corners.tga
	 depthwrite
	 alphaFunc GE128
	 rgbGen vertex
	}
}


textures/orleans_cod/brickstone_layer
{
	qer_trans 0.85
	qer_editorimage textures/orleans_cod/brickstone_layer.tga
	cull disable
	sort 6
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm pointlight
	surfaceparm trans
	surfaceparm nonsolid
	implicitMask textures/orleans_cod/brickstone_layer.tga
	{
	 map textures/orleans_cod/brickstone_layer.tga
	 depthwrite
	 alphaFunc GE128
	 rgbGen vertex
	}
}





////////////////////////
/////////BUMPSHADERS////
////////////////////////

textures/orleans/pavement_orleans

{

qer_editorimage textures/orleans/pavement_orleansc.tga

q3map_lightmapsamplesize 1

q3map_normalimage textures/orleans/pavement_orleansb.tga

{

map $lightmap

}

{

map textures/orleans/pavement_orleans.tga

blendFunc GL_DST_COLOR GL_ZERO

}

}


textures/orleans/ma_co

{

qer_editorimage textures/orleans/ma_coc.tga

q3map_lightmapsamplesize 1

q3map_normalimage textures/orleans/ma_cob.tga

{

map $lightmap

}

{

map textures/orleans/ma_co.tga

blendFunc GL_DST_COLOR GL_ZERO

}

}




textures/orleans/cwall

{

qer_editorimage textures/orleans/cwallc.tga

q3map_lightmapsamplesize 1

q3map_normalimage textures/orleans/cwallb.tga

{

map $lightmap

}

{

map textures/orleans/cwall.tga

blendFunc GL_DST_COLOR GL_ZERO

}

}

textures/orleans/stone

{

qer_editorimage textures/orleans/stonec.tga

q3map_lightmapsamplesize 1

q3map_normalimage textures/orleans/stoneb.tga

{

map $lightmap

}

{

map textures/orleans/stone.tga

blendFunc GL_DST_COLOR GL_ZERO

}

}
