textures/partdm1/pdm1_glass
{
	qer_editorimage gfx/colors/chrome4.tga
	surfaceparm trans
	cull disable
	qer_trans 0.5
	//{
	//	map $lightmap
	//	blendfunc filter
	//	rgbgen identity
	//	tcgen lightmap
	//}
	{
		map textures/partdm1/chrome4.tga
		blendfunc add
		tcGen environment 
		tcmod scale 2 2
	}
	{
		map textures/partdm1/dirt.tga
		blendfunc blend
		tcmod scale .5 .5
	}
}

textures/partdm1/pdm1_lava
{
	q3map_globaltexture
	//surfaceparm trans
	surfaceparm nonsolid
	surfaceparm noimpact
	surfaceparm lava
	surfaceparm nolightmap
	q3map_surfacelight 200
	tesssize 64
	qer_editorimage textures/partdm1/lava2.jpg

	deformVertexes wave 100 sin 3 2 .1 0.1
	
        {
		map textures/partdm1/lava1_glow.jpg
                //tcmod scale .2 .2
                //tcmod scroll .04 .03
			tcmod scroll .0005 .0005
                tcMod turb 0 .01 0 .05
                blendFunc GL_ONE GL_ZERO
                rgbGen identity
	}
	{
		map textures/partdm1/lava2.jpg
            blendfunc add
		//blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		tcMod turb 0 .02 0 .1
		tcmod scroll .00025 .00025
	}

}

textures/partdm1/partdm1_sky2
{
	qer_editorimage textures/partdm1/part_white.tga
	q3map_lightimage textures/partdm1/part_white.tga
	surfaceparm sky
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nomarks
	q3map_surfacelight 400
	skyparms env/partdm1_sky2/partdm1 - -
}

// cubemapped water
textures/partdm1/partdm1_water
{
    qer_editorimage env/partdm1/partdm1_water_nx.jpg
    q3map_globaltexture
    qer_trans .75
    surfaceparm trans
    surfaceparm nonsolid
    surfaceparm water
    surfaceparm nolightmap
    q3map_surfacelight 25
    cull none

    //deformVertexes wave <div> <func> <base> <amplitude> <phase> <freq>
    tesssize 64
    deformVertexes wave 64 sin 1 1 0.25 0.6 

    //for 3d cards supporting cubemaps
    if textureCubeMap
    {
        cubemap env/partdm1/partdm1_water
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        alphaGen constant 0.4    //alpha graduated blend
        
        tcMod turb 0.6 0.5 0.5 0.5    //texture 'waves'
    }
    endif

    //this is the first water pass from the wtest1_water shader
    { 
            map textures/partdm1/water2.jpg
            blendFunc GL_dst_color GL_one
            rgbgen identity
            tcmod scale .25 .25
            tcmod scroll .02 .01
    }

    //the second water pass from the old wtest1_water shader
    
    if ! textureCubeMap //for 3d cards not supporting cubemaps
    { 
            map textures/partdm1/water1.jpg
            blendFunc GL_dst_color GL_one
            tcmod scale -.25 -.25
            tcmod scroll .02 .02
    }
    endif

    //the last pass from wtest1_water shader
    {
        map $lightmap
        blendFunc GL_dst_color GL_zero
        rgbgen identity        
    }
}