//bazaar shader by detoeni
//correctly written so slicks pk3 non-fault finder wont go confusing folks:P
//editor images removed from textures/bazaar/ after compile
//last edited 15.3.2004

textures/bazaar/dt_hullcaulk
{
	qer_editorimage textures/_dt_common/dt_hullcaulk.tga
	surfaceparm nodraw
	surfaceparm nomarks
	qer_trans .8 
}

textures/bazaar/fence_bazaar
{
	qer_trans 0.85
	qer_editorimage textures/bazaar/baz_grill2.tga
	q3map_cloneshader textures/bazaar/bk_fence_bazaar
	nomipmaps
	nopicmip
	
	surfaceparm clipmissile
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm metalsteps
	surfaceparm trans

	{
       	map textures/bazaar/baz_grill2.tga
       	alphaFunc GE128
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/bk_fence_bazaar
{
	qer_trans 0.85
	qer_editorimage textures/bazaar/baz_grill2.tga
	q3map_invert
	nomipmaps
	nopicmip

	surfaceparm clipmissile
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm metalsteps
	surfaceparm trans

	{
       	map textures/bazaar/baz_grill2.tga
       	alphaFunc GE128
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/moucha1_bazaar
{
	qer_trans 0.85
	qer_editorimage textures/bazaar/tobruk_moucha1_modi.tga
	q3map_cloneshader textures/bazaar/moucha1_bazaar2
	nomipmaps
	nopicmip

	surfaceparm clipmissile
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm metalsteps
	surfaceparm trans

	{
       	map textures/bazaar/tobruk_moucha1_modi.tga
       	alphaFunc GE128
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/moucha1_bazaar2
{
	qer_trans 0.85
	qer_editorimage textures/bazaar/tobruk_moucha1_modi.tga
	q3map_invert
	nomipmaps
	nopicmip

	surfaceparm clipmissile
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm metalsteps
	surfaceparm trans

	{
       	map textures/bazaar/tobruk_moucha1_modi.tga
       	alphaFunc GE128
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/fence2_bazaar
{
	qer_editorimage textures/bazaar/chateau_c11_modi.tga
	qer_trans 0.85
	cull disable
    	nomipmaps
    	nopicmip
	  
	surfaceparm clipmissile
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm playerclip
	surfaceparm metalsteps
 	surfaceparm trans

    	{
       	map textures/bazaar/chateau_c11_modi.tga
       	alphaFunc GE128
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}

}

textures/bazaar/green_marble
{   
	qer_editorimage textures/bazaar/marblefloor_c04_modi.tga
	surfaceparm nomarks
	{
		map textures/effects/tinfx.tga       
		tcGen environment
		rgbGen vertex
	}  
	{
		map textures/bazaar/marblefloor_c04_modi.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}        
}

textures/bazaar/gold
{
	qer_editorimage textures/bazaar/gold_plain.tga
	q3map_forcemeta
	q3map_nonplanar
	q3map_shadeangle 180
	surfaceparm nomarks
	{
       	map textures/bazaar/gold_plain.tga
       	depthWrite
       	rgbGen identity	
    	}
	{
		map textures/effects/tinfx.tga
   	    tcgen environment
		blendFunc GL_ONE GL_ONE
		depthFunc equal
		rgbGen identity
	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/blk_marble
{   
	qer_editorimage textures/bazaar/blk_marble.tga
	surfaceparm nomarks
	{
		map textures/effects/tinfx.tga       
		tcGen environment
		rgbGen vertex
	}  
	{
		map textures/bazaar/blk_marble.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}        
}

textures/bazaar/toom_top
{
	qer_editorimage textures/bazaar/bazaar_box_top.tga
    	nomipmaps
    	nopicmip
	surfaceparm nomarks
	surfaceparm trans
	surfaceparm nonsolid
    	polygonOffset
	entityMergable
    	{
       	map textures/bazaar/bazaar_box_top.tga
       	alphaFunc lt128
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map textures/effects/tinfx.tga
   	    tcgen environment
		blendFunc GL_ONE GL_ONE
		depthFunc equal
		rgbGen identity
	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/bazaar_sky2
{
	nocompress
	qer_editorimage textures/skies_sd/siwa_mask.tga
	q3map_sun 0.75 0.70 0.6 150 -15 25
	q3map_skyLight 60 3

	sunshader textures/skies_sd/siwasunbright
	
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nodlight
	surfaceparm sky
	
	skyparms textures/skies_sd/wurzburg_env/sky 512 -
 
	{
		fog off
		clampmap textures/skies_sd/siwa_mask.tga
		tcMod scale 0.956 0.956
		tcMod transform 1 0 0 1 -1 -1
		rgbGen identityLighting
	}
}

textures/bazaar/bazaar_carpet
{
	qer_editorimage textures/chateau/floor_c10.tga
	surfaceparm nonsolid
	surfaceparm nomarks
    	polygonOffset
	entityMergable
	
    	{
       	map textures/chateau/floor_c10.tga
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/bazaar_carpet_edge
{
	qer_editorimage textures/chateau/floor_c10a.tga
	surfaceparm nonsolid
	surfaceparm nomarks
    	polygonOffset
	entityMergable
    	{
       	map textures/chateau/floor_c10a.tga
     	 	depthWrite
       	rgbGen identity	
    	}
	{
		map $lightmap
 		blendfunc filter
		rgbGen identity
		tcGen lightmap
 		depthFunc equal
	}
}

textures/bazaar/bazaar_stucco07b_phong
{
	qer_editorimage textures/egypt_walls_sd/stucco07a.tga
	q3map_nonplanar
	q3map_shadeangle 140
	implicitMap textures/egypt_walls_sd/stucco07a.tga
}

models/mapobjects/bazaar/relic
{
	surfaceparm nomarks
//	{
//		map models/mapobjects/bazaar/relic.tga
		//rgbGen lightingdiffuse
//		rgbGen vertex
//	}
	{
		map textures/effects/envmap_slate.tga
		rgbGen lightingdiffuse
		tcGen environment
	}
	{
		map models/mapobjects/bazaar/relic.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		rgbGen lightingdiffuse
	}

}

textures/bazaar/nlm_blk
{
	qer_editorimage textures/bazaar/nlm_blk.tga
	surfaceparm nolightmap
	surfaceparm nodlight
	implicitMap textures/bazaar/nlm_blk.tga
}

textures/bazaar/gold_smoker
{   
	qer_editorimage textures/bazaar/gold_smoker.tga
	surfaceparm nomarks
	{
		map textures/effects/tinfx.tga       
		tcGen environment
		rgbGen vertex
	}  
	{
		map textures/bazaar/gold_smoker.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}        
}

textures/bazaar/gold_2
{   
	qer_editorimage textures/bazaar/gold_plain2.tga
	surfaceparm nomarks
	{
		map textures/effects/tinfx.tga       
		tcGen environment
		rgbGen vertex
	}  
	{
		map textures/bazaar/gold_plain2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}        
}

textures/bazaar/gold_fire
{   
	qer_editorimage textures/bazaar/gold_fire.tga
	surfaceparm nomarks
	{
		map textures/effects/tinfx.tga       
		tcGen environment
		rgbGen vertex
	}  
	{
		map textures/bazaar/gold_fire.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ONE_MINUS_DST_ALPHA
		rgbGen identity
	}        
}

textures/bazaar/stucco_modi
{
	q3map_nonplanar
	q3map_shadeangle 90
	implicitMap -
}

//end

//////////////////////
///////com map////////
//////////////////////
levelshots/bazaar_cc_automap
{
nopicmip
nocompress
nomipmaps
{
clampmap levelshots/bazaar_cc.tga
depthFunc equal
rgbGen identity
}
}

levelshots/bazaar_cc_trans
{
nopicmip
nocompress
nomipmaps
{
clampmap levelshots/bazaar_cc.tga
blendfunc blend
rgbGen identity
alphaGen vertex
}
}

//////////////////////
////////end///////////
//////////////////////
