// Etna_beta1 shaders
// Updated March 13th 2007



textures/etna_b1/e_caulk
{
	surfaceparm nodraw
	surfaceparm nomarks
}

// Alpha Brushes

textures/etna_b1/e_alpha_0
{
  qer_editorimage textures/etna_b1/e_alpha_0.tga
  qer_trans 0.75
  q3map_alphamod volume
  q3map_alphamod scale 0
  surfaceparm nonsolid
  surfaceparm nodraw
  surfaceparm trans
}

textures/etna_b1/e_alpha_50
{
	qer_editorimage textures/etna_b1/e_alpha_50.tga
	qer_trans 0.5
	q3map_alphaMod volume
	q3map_alphaMod scale 0.50
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
}

textures/etna_b1/etnasky
{
	nocompress
	qer_editorimage textures/etna_b1/etnasky.tga
	q3map_lightimage textures/skies/n_blue2.tga
	q3map_nofog
	q3map_globaltexture
	q3map_lightsubdivide 512 
	q3map_sun 1 .90 .90 95 300 60

	q3map_surfacelight 20

	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky

	skyparms - 256 -
	sunshader textures/etna_b1/v_sun

	{
		map textures/skies_sd/wurzburg_clouds.tga
		tcMod scale 2.5 2.5
		tcMod scroll -0.0015 0.003
		rgbGen identityLighting
	}
	{
		map textures/skies_sd/ydnar_lightning.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen wave triangle -8 9 0 0.137
		alphaGen wave noise -3 4 0 2.37
		tcMod scale 3 3
		tcMod scroll 0.003 -0.0015
	}
	{
		clampmap textures/etna_b1/etna_fogmask2.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		tcMod scale 0.956 0.956
		tcMod transform 1 0 0 1 -1 -1
		rgbGen identitylighting
	}
}

textures/etna_b1/v_sun
{
	cull none
	q3map_nofog
	nofog
	{
		map textures/etna_b1/v_sun.tga
		blendFunc GL_SRC_ALPHA GL_ONE
		rgbGen identityLighting
	}
}



textures/etna_b1/lava

{
	nocompress
	q3map_lightimage textures/etna_b1/lava.tga
	qer_editorimage textures/etna_b1/lava.tga
	q3map_surfacelight 250
	q3map_globaltexture
	//surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	surfaceparm lava
	cull disable
	nopicmip
	
	{ 
		map textures/etna_b1/lava.tga
		depthWrite
		rgbgen identity
		tcmod scroll 0.005 0.002
	}
	
}

textures/etna_b1/lava2

{
	nocompress
	q3map_lightimage textures/etna_b1/lava.tga
	qer_editorimage textures/etna_b1/lava2.tga
	q3map_surfacelight 250
	q3map_globaltexture
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm water
	surfaceparm nomarks
	surfaceparm lava
	cull disable
	nopicmip
	
	{ 
		map textures/etna_b1/lava.tga
		depthWrite
		rgbgen identity
		//tcmod scroll 0.005 0.002
	}
	
}




textures/etna_b1/etna_fence
{
	qer_editorimage textures/etna_b1/etna_fence.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm metalsteps
	surfaceparm pointlight
	surfaceparm trans
	implicitMask -
}

textures/etna_b1/canopy
{
	qer_editorimage textures/etna_b1/canopy.jpg
	cull disable
	deformVertexes wave 100 sin 0 2 0 .3
	deformVertexes wave 30 sin 0 2 0 .1
	nofog
	surfaceparm alphashadow
	surfaceparm nomarks
	surfaceparm trans
	tessSize 64
	implicitMap -
}

textures/etna_b1/shutter1
{
	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/greendoor
{
	surfaceparm woodsteps
	implicitMap -
}
textures/etna_b1/church_door
{
	surfaceparm metalsteps
	implicitMap -
}

textures/etna_b1/windowbars
{
	qer_editorimage textures/etna_b1/windowbars.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm metalsteps
	surfaceparm pointlight
	surfaceparm trans
	implicitMask -
}
textures/etna_b1/light_orange
{
	q3map_lightimage 	textures/etna_b1/light_orange.tga
	q3map_surfacelight 140000		
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm glass
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/etna_b1/light_orange.tga
		blendFunc GL_DST_COLOR GL_ZERO
		depthWrite
		rgbGen identity
	}
	{
		map textures/etna_b1/light_orange.tga
		blendFunc GL_ONE GL_ONE
	}
}
textures/etna_b1/gold
{
	surfaceparm metalsteps
	implicitMap -
}
textures/etna_b1/church_window_glass
{
	qer_trans 0.5
	qer_editorimage textures/etna_b1/church_window_glass.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm glass
	//surfaceparm alphashadow
	surfaceparm trans
	{
		map textures/etna_b1/church_window_glass.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}
textures/etna_b1/church_window_surround
{
	qer_editorimage textures/etna_b1/church_window_surround.tga
	//cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	//surfaceparm pointlight
	surfaceparm trans
	implicitMask -
}

textures/etna_b1/doorshutter2
{
	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/on_doorshutter
{
	qer_editorimage textures/etna_b1/doorshutter1.tga
	q3map_surfacelight 250
	surfaceparm woodsteps
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/etna_b1/doorshutter1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/etna_b1/doorshutter1_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/etna_b1/ff_cruz_window
{
	surfaceparm trans
	PolygonOffset
	{
		map textures/etna_b1/ff_cruz_window.tga
		blendfunc blend
		rgbgen vertex
	}
}

textures/etna_b1/ff_cwin1
{
	qer_editorimage textures/etna_b1/e_castle_win1.tga
	q3map_surfacelight 300
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/etna_b1/e_castle_win1.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/etna_b1/e_castle_win1_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen identity
	}
}

textures/etna_b1/white_decal
{
	qer_editorimage textures/tobruk_wall_sd/tobruk_wall_base1.tga
	polygonOffset
	surfaceparm pointlight
	implicitMap textures/tobruk_wall_sd/tobruk_wall_base1.tga
}

// *** noclip notjunc *****

textures/etna_b1/rubble_brwallbig2
{
	qer_editorimage textures/etna_b1/rubble_brwallbig2.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/rubble_brwallbig2.tga
}

textures/etna_b1/ff_brwallbig2
{
	qer_editorimage textures/etna_b1/ff_brwallbig2.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/ff_brwallbig2.tga
}

textures/etna_b1/ff_brwallbig2_crack1
{
	qer_editorimage textures/etna_b1/ff_brwallbig2_crack1.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/ff_brwallbig2_crack1.tga
}

textures/etna_b1/ff_brwallbig2_trim
{
	qer_editorimage textures/etna_b1/ff_brwallbig2_trim.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/ff_brwallbig2_trim.tga
}

// added

textures/etna_b1/ff_spawn1
{
	qer_editorimage textures/etna_b1/ff_spawn1.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/ff_spawn1.tga
}

textures/etna_b1/newwall1
{
	qer_editorimage textures/etna_b1/newwall1.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/newwall1.tga
}

textures/etna_b1/newwall1_base
{
	qer_editorimage textures/etna_b1/newwall1_base.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/newwall1_base.tga
}

textures/etna_b1/st_brown1b
{
	qer_editorimage textures/etna_b1/st_brown1b.tga
	q3map_nonplanar
	q3map_shadeangle 60
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/st_brown1b.tga
}

textures/etna_b1/ff_dry_br1
{
	qer_editorimage textures/etna_b1/ff_dry_br1.tga
	q3map_noClip
	q3map_noTjunc
	implicitMap textures/etna_b1/ff_dry_br1.tga
}

textures/etna_b1/mtvesuvius
{
	qer_editorimage textures/etna_b1/mtvesuvius2.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	nomipmaps
	nopicmip
	cull disable
	{
		map textures/etna_b1/mtvesuvius2.tga
		alphaFunc GE128
		depthWrite
		rgbGen vertex
	}
}

textures/etna_b1/mtvesuvius2
{
	qer_editorimage textures/etna_b1/mtvesuvius2.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	nomipmaps
	nopicmip
	cull disable
	{
		map textures/etna_b1/mtvesuvius2.tga
		alphaFunc GE128
		depthWrite
		rgbGen vertex
	}
}


// Command map icon

textures/etna_b1/cm_urn
{
	nomipmaps
	nopicmip
	{
		map textures/etna_b1/cm_urn.tga
		blendfunc blend
		rgbgen vertex
	}
}

// propaganda posters

textures/etna_b1/prop1
{
	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/prop2
{
	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/prop3
{
	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/prop4
{
	surfaceparm woodsteps
	implicitMap -
}

//goldpanels

textures/etna_b1/goldpanel1
{
	surfaceparm metalsteps
	implicitMap - 
}

textures/etna_b1/goldpanel3
{
	surfaceparm metalsteps
	implicitMap - 
}
textures/etna_b1/eriks_portal
{
	qer_editorimage textures/etna_b1/eriks_portal.jpg
	surfaceparm playerclip
	surfaceparm nolightmap
	portal
	{
		map textures/etna_b1/eriks_portal.jpg
 		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		alphaGen portal 1024
        }
}

textures/etna_b1/wallpic1
{

	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/wallpic2
{

	surfaceparm woodsteps
	implicitMap -
}


textures/etna_b1/ash_box1
{
	surfaceparm woodsteps
	implicitMap -
}

textures/etna_b1/ash_box2
{
	surfaceparm woodsteps
	implicitMap -
}
textures/etna_b1/v_plaque
{
	surfaceparm metalsteps
	implicitMap -
}
textures/etna_b1/br_water_calm2
{
	qer_editorimage textures/etna_b1/pool3d_3c.tga
	qer_trans .5
	q3map_globaltexture
	cull disable
	nofog
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water
	{
		map textures/etna_b1/pool3d_5c.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod transform 1.5 0 1.5 1 1 2
		tcmod scroll -.05 .001
		fog on
	}
	{
		map textures/etna_b1/pool3d_6c.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .5 .5
		tcmod transform 0 1.5 1 1.5 2 1
		tcmod scroll .025 -.001
		fog on
	}
	{
		map textures/etna_b1/pool3d_3c.tga
		blendFunc GL_dst_color GL_one
		rgbgen identity
		tcmod scale .25 .5
		tcmod scroll .001 .025
	}
	{
		map $lightmap
		blendFunc GL_dst_color GL_zero
		rgbgen identity
	}
}

textures/etna_b1/e_wood_ash
{
	surfaceparm woodsteps
	implicitMap -
}

















