//logo
textures/darkpukka/logo
{
qer_editorimage textures/darkpukka/darkpukka_logo.tga
q3map_lightimage textures/darkpukka/darkpukka_logo.tga	
q3map_surfacelight 200
light 200
noPicMip
polygonOffset
surfaceparm nonsolid
surfaceparm nomarks	
	{
		map textures/darkpukka/darkpukka_logo.tga
		blendFunc GL_DST_COLOR GL_SRC_ALPHA	
		rgbGen identityLighting
	}
}

//sky
textures/darkpukka/darkpukkahellsky
{
	qer_editorimage textures/darkpukka/darkpukka_clouds.tga
	//q3map_lightimage textures/colors/m13sky.jpg
	q3map_lightmapFilterRadius 0 8		
	//q3map_sunExt 1 .8 .3 650 -150 60 3 32			
	q3map_skyLight 50 6 //175
	//?q3map_noFog
	surfaceparm sky
	surfaceparm noimpact
	surfaceparm nolightmap
	skyparms - 2000 -
	nopicmip
	{
		map textures/darkpukka/darkpukka_clouds.tga
		tcMod scroll .03 .005
		tcmod scale 2 2
		rgbGen identityLighting
	}	
	{
		map textures/darkpukka/lightning.jpg
		blendfunc add
		rgbGen wave noise 0 1 0 10 
		tcMod scale 0.32 0.32
		tcMod rotate 20
	}	
}


//LAVA
textures/darkpukka/darkhelllava
{	
	qer_editorimage textures/darkpukka/acid.tga
	q3map_globaltexture
	surfaceparm noimpact
	surfaceparm trans
	surfaceparm lava
	surfaceparm nolightmap
	q3map_surfacelight 100
	cull disable
	
	tesssize 128
	cull disable
	deformVertexes wave 100 sin 3 2 .1 0.1
	
	{
		map textures/darkpukka/acid.tga
		tcMod turb 0 .2 0 .1
	}


}


textures/darkpukka/glass
{
        qer_editorimage textures/darkpukka/glass.tga
        qer_trans 0.80
        surfaceparm nolightmap
	//surfaceparm nomarks
	surfaceparm nodlight
        surfaceparm trans
        cull disable
        {
                map textures/darkpukka/glass.tga
                blendfunc filter
        }
        {
                map textures/darkpukka/envmap2.tga
                blendfunc add
                rgbGen identity
                tcGen environment
        }
}
//test
textures/darkpukka/box
{	qer_editorimage textures/darkpukka/pukka_box.tga
	q3map_lightimage textures/darkpukka/pukka_box.tga
	surfaceparm nomarks
	q3map_surfacelight 100
	light 1
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/darkpukka/darkpukka_30.tga
		blendFunc filter
		rgbGen identity
	}
        {
		map textures/darkpukka/pukka_box.tga
		blendFunc add
		rgbGen wave square .5 .5 0 1
	}
	
}

	
textures/darkpukka/gate
{
qer_editorimage textures/darkpukka/gate.tga
q3map_lightimage textures/darkpukka/gate.tga	
q3map_surfacelight 500
light 100
noPicMip
polygonOffset
surfaceparm nonsolid
surfaceparm nomarks	
	{
		map textures/darkpukka/gate.tga
		rgbGen identityLighting
		blendFunc GL_DST_COLOR GL_SRC_ALPHA	
	}
}	
	

//trims
textures/darkpukka/light_red
{

qer_editorimage textures/darkpukka/red.tga
q3map_surfacelight 250
light 250
{
map textures/darkpukka/red.tga
rgbGen identityLighting
}
}

textures/darkpukka/light_yellow
{

qer_editorimage textures/darkpukka/yellow.tga
q3map_surfacelight 250
light 250
{
map textures/darkpukka/yellow.tga
rgbGen identityLighting
}
}
textures/darkpukka/light_white
{

qer_editorimage textures/darkpukka/white.tga
q3map_surfacelight 250
light 250
{
map textures/darkpukka/white.tga
rgbGen identityLighting
}
}


textures/darkpukka/light
{

qer_editorimage textures/darkpukka/light.tga
q3map_surfacelight 1000
light 1000
{
map textures/darkpukka/light.tga
rgbGen identityLighting
}
}

//water
textures/darkpukka/water
	{
		qer_editorimage textures/darkpukka/envmap2.tga
		qer_trans .5
		q3map_globaltexture
		//surfaceparm trans
		surfaceparm nonsolid
		surfaceparm water
	
		//cull disable
		deformVertexes wave 64 sin .25 .25 0 .5	
		{ 
			map textures/liquids/pool3d_5e.tga
			blendFunc GL_dst_color GL_one
			//rgbgen identity
			tcmod scale .5 .5
			tcmod scroll .025 .01
		}
	
		{ 
			map textures/liquids/pool3d_3e.tga
			blendFunc GL_dst_color GL_one
			tcmod scale -.5 -.5
			tcmod scroll .025 .025
		}

	
		{
			map $lightmap
			blendFunc GL_dst_color GL_zero
			//rgbgen identity		
		}
		}
