//
//
//LIGHTS
//
//

textures/wub-dfwc/octlight01
{
	qer_editorimage textures/wub-dfwc/octlight01.tga
	q3map_lightimage textures/wub-dfwc/octlight01_blend.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/wub-dfwc/octlight01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/octlight01_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sin .3 .1 0 0.5
	}
}

textures/wub-dfwc/octlight02
{
	qer_editorimage textures/wub-dfwc/octlight02.tga
	q3map_lightimage textures/wub-dfwc/octlight02_blend.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/wub-dfwc/octlight02.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/octlight02_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sin .3 .1 0 0.5
	}
}

textures/wub-dfwc/octlight03
{
	qer_editorimage textures/wub-dfwc/octlight03.tga
	q3map_lightimage textures/wub-dfwc/octlight03_blend.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/wub-dfwc/octlight03.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/octlight03_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sin .3 .1 0 0.5
	}
}

textures/wub-dfwc/sqlight01
{
	qer_editorimage textures/wub-dfwc/sqlight01.tga
	q3map_lightimage textures/wub-dfwc/sqlight01_blend.tga
	q3map_surfacelight 3000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/wub-dfwc/sqlight01.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/sqlight01_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sin .3 .1 0 0.5
	}
}

textures/wub-dfwc/sqlight02
{
	qer_editorimage textures/wub-dfwc/sqlight02.tga
	q3map_lightimage textures/wub-dfwc/sqlight02blend.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/wub-dfwc/sqlight02.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/sqlight02_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sin .3 .1 0 0.5
	}
}

textures/wub-dfwc/trimlight01
{
	qer_editorimage textures/wub-dfwc/trimlight01.tga
	q3map_lightimage textures/wub-dfwc/trimlight01_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight01.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight01_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight02
{
	qer_editorimage textures/wub-dfwc/trimlight02.tga
	q3map_lightimage textures/wub-dfwc/trimlight02_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight02.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight02_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight03
{
	qer_editorimage textures/wub-dfwc/trimlight03.tga
	q3map_lightimage textures/wub-dfwc/trimlight03_blend.tga
	q3map_surfacelight 2500
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight03.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight03_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight04
{
	qer_editorimage textures/wub-dfwc/trimlight04.tga
	q3map_lightimage textures/wub-dfwc/trimlight04_blend.tga
	q3map_surfacelight 1500
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight04.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight04_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight05
{
	qer_editorimage textures/wub-dfwc/trimlight05.tga
	q3map_lightimage textures/wub-dfwc/trimlight05_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight05.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight05_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight06
{
	qer_editorimage textures/wub-dfwc/trimlight06.tga
	q3map_lightimage textures/wub-dfwc/trimlight05_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight06.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight05_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight07
{
	qer_editorimage textures/wub-dfwc/trimlight07.tga
	q3map_lightimage textures/wub-dfwc/trimlight07_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight07.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight07_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight08
{
	qer_editorimage textures/wub-dfwc/trimlight08.tga
	q3map_lightimage textures/wub-dfwc/trimlight08_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight08.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight08_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight09
{
	qer_editorimage textures/wub-dfwc/trimlight09.tga
	q3map_lightimage textures/wub-dfwc/trimlight09_blend.tga
	q3map_surfacelight 1750
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight09.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight09_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight10
{
	qer_editorimage textures/wub-dfwc/trimlight10.tga
	q3map_lightimage textures/wub-dfwc/trimlight10_blend.tga
	q3map_surfacelight 2500
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight10.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight10_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

textures/wub-dfwc/trimlight11
{
	qer_editorimage textures/wub-dfwc/trimlight11.tga
	q3map_lightimage textures/wub-dfwc/trimlight11_blend.tga
	q3map_surfacelight 2000
	q3map_lightSubdivide 50
	surfaceparm nomarks
	{
		map textures/wub-dfwc/trimlight11.tga
		rgbGen identity
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/wub-dfwc/trimlight11_blend.tga
		blendfunc GL_ONE GL_ONE
		rgbGen wave sawtooth .6 .1 0 7
	}
}

//
//
//SKYBOX
//
//

textures/wub-dfwc/wub_skybox
{
	qer_editorimage textures/wub-dfwc/wub_skybox_view.jpg
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_globaltexture
	q3map_lightsubdivide 256
	q3map_surfacelight 200
	surfaceparm sky
	skyparms env/wub-dfwc/wub - -

}

//
//
//PORTAL
//
//

models/mapobjects/telestecki/telelite04
{

        {
                map textures/effects/tinfx2c.tga
                tcGen environment
                rgbGen identity
        }
	{
		map models/mapobjects/telestecki/telelite01.tga
		blendFunc blend
		rgbGen vertex

	}
		{
		map models/mapobjects/telestecki/telelite_g.tga
		blendFunc add
		rgbGen identity

	}
	{
		map models/mapobjects/telestecki/telelite_i.tga
		blendFunc add
		rgbGen wave Sin 0 1 0 .5
	}
}

models/mapobjects/telestecki/telelite03
{

        {
                map textures/effects/tinfx2c.tga
                tcGen environment
                rgbGen identity
        }
	{
		map models/mapobjects/telestecki/telelite01.tga
		blendFunc blend
		rgbGen vertex

	}
		{
		map models/mapobjects/telestecki/telelite_g.tga
		blendFunc add
		rgbGen identity

	}
	{
		map models/mapobjects/telestecki/telelite_i.tga
		blendFunc add
		rgbGen wave Sin 0 1 .25 .5

	}
}

models/mapobjects/telestecki/telelite02
{
        {
                map textures/effects/tinfx2c.tga
                tcGen environment
                rgbGen identity
        }
	{
		map models/mapobjects/telestecki/telelite01.tga
		blendFunc blend
		rgbGen vertex

	}
		{
		map models/mapobjects/telestecki/telelite_g.tga
		blendFunc add
		rgbGen identity

	}
	
	{
		map models/mapobjects/telestecki/telelite_i.tga
		blendFunc add
		rgbGen wave Sin 0 1 .5 .5

	}
}

models/mapobjects/telestecki/telelite01
{
        {
                map textures/effects/tinfx2c.tga
                tcGen environment
                rgbGen identity
        }
	{
		map models/mapobjects/telestecki/telelite01.tga
		blendFunc blend
		rgbGen vertex

	}
		{
		map models/mapobjects/telestecki/telelite_g.tga
		blendFunc add
		rgbGen identity

	}
	
	{
		map models/mapobjects/telestecki/telelite_i.tga
		blendFunc add
		rgbGen wave Sin 0 1 .75 .5

	}
}

//GLOWING CENTER FAUX PARTICLES

models/mapobjects/telestecki/teleglow01
{
	deformVertexes autosprite
     	surfaceparm	trans
     	nomipmaps

	{
		clampmap models/mapobjects/telestecki/teleglow01.tga
		blendfunc gl_one gl_one
		tcMod stretch sawtooth 1 -.9 .5 1.15
		tcMod rotate 15
		rgbGen wave sawtooth .5 .5 .25 1.15
	}
	{
		clampmap models/mapobjects/telestecki/teleglow01.tga
		blendfunc gl_one gl_one
		tcMod stretch sawtooth 1 -.9 .5 1.5
		tcMod rotate -60
		rgbGen wave sawtooth .75 .5 .5 1.5
	}
}


models/mapobjects/telestecki/teleglow02
{
	deformVertexes autosprite
	surfaceparm	trans
     	nomipmaps


	{
		clampmap models/mapobjects/telestecki/teleglow01.tga
		blendfunc gl_one gl_one
		tcMod stretch sawtooth 1 -.9 0 1.5
		tcMod rotate 60
		rgbGen wave sawtooth .75 .5 .6 1.5
	}
	{
		clampmap models/mapobjects/telestecki/teleglow01.tga
		blendfunc gl_one gl_one
		tcMod stretch sawtooth 1 -.9 .5 1.20
		tcMod rotate -20
		rgbGen wave sawtooth .75 .5 .1 1.20
	}
}


//MAIN TELEPORT SURFACES

models/mapobjects/telestecki/telemain
{
        {
                map textures/effects/tinfx2c.tga
                tcGen environment
                rgbGen identity
        }
        {
                map models/mapobjects/telestecki/telemain.tga
                blendFunc blend
                rgbGen vertex
        }
}

//TELEPORTER RAILING

models/mapobjects/telestecki/telerail

{
     cull disable
        {
                map models/mapobjects/telestecki/telemain.tga
                //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
                //alphaFunc GT0
                alphaFunc GE128
		depthWrite
		rgbGen vertex
        }


}

//
//
//PADS
//
//

textures/wub-dfwc/pad_blue
{
	qer_editorimage textures/wub-dfwc/pad01.tga
	q3map_lightimage textures/wub-dfwc/padblue01.tga	
	q3map_surfacelight 400
	{
		map textures/wub-dfwc/padblue02.tga
                tcmod rotate 180
                tcMod stretch sin 1 0.1 0 .5
	}
	{
		clampmap textures/wub-dfwc/padblue01.tga
		blendfunc ADD
		tcMod stretch sin 2 .8 0 1.25
		rgbGen wave square .5 .5 .25 1.25
		rgbgen identity
	}
	{
		map textures/wub-dfwc/pad01.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
	}
        {
		map $lightmap
                blendFunc GL_DST_COLOR GL_ZERO
                rgbGen identity
	}
}

textures/wub-dfwc/pad_gold
{
	qer_editorimage textures/wub-dfwc/pad01.tga
	q3map_lightimage textures/wub-dfwc/padgold01.tga	
	q3map_surfacelight 400
	{
		map textures/wub-dfwc/padgold02.tga
                tcmod rotate 180
                tcMod stretch sin 1 0.1 0 .5
	}
	{
		clampmap textures/wub-dfwc/padgold01.tga
		blendfunc ADD
		tcMod stretch sin 2 .8 0 1.25
		rgbGen wave square .5 .5 .25 1.25
		rgbgen identity
	}
	{
		map textures/wub-dfwc/pad01.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
	}
        {
		map $lightmap
                blendFunc GL_DST_COLOR GL_ZERO
                rgbGen identity
	}
}

textures/wub-dfwc/pad_red
{
	qer_editorimage textures/wub-dfwc/pad01.tga
	q3map_lightimage textures/wub-dfwc/padred01.tga	
	q3map_surfacelight 400
	{
		map textures/wub-dfwc/padred02.tga
                tcmod rotate 180
                tcMod stretch sin 1 0.1 0 .5
	}
	{
		clampmap textures/wub-dfwc/padred01.tga
		blendfunc ADD
		tcMod stretch sin 2 .8 0 1.25
		rgbGen wave square .5 .5 .25 1.25
		rgbgen identity
	}
	{
		map textures/wub-dfwc/pad01.tga
                blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbgen identity
	}
        {
		map $lightmap
                blendFunc GL_DST_COLOR GL_ZERO
                rgbGen identity
	}
}

//
//
//MISC
//
//

textures/wub-dfwc/arrow01

{
	qer_editorimage textures/wub-dfwc/arrow01.jpg
	surfaceparm nomarks   
    	surfaceparm trans
	surfaceparm nonsolid
  	nopicmip
	{
		map textures/wub-dfwc/arrow01.jpg
		rgbGen identity
		blendFunc add
	}
}

textures/wub-dfwc/arrow02

{
	qer_editorimage textures/wub-dfwc/arrow02.jpg
	surfaceparm nomarks   
    	surfaceparm trans
	surfaceparm nonsolid
  	nopicmip
	{
		map textures/wub-dfwc/arrow02.jpg
		rgbGen identity
		blendFunc add
	}
}

textures/wub-dfwc/laser
{
    	surfaceparm trans
	q3map_lightimage textures/wub-dfwc/laser.tga	
    	surfaceparm nomarks	
    	surfaceparm nonsolid
	surfaceparm nolightmap
	q3map_surfacelight 2000
	cull none
	{
		map textures/wub-dfwc/laser.tga
         	tcMod Scroll .3 0
         	blendFunc add
  	}
          
}

textures/wub-dfwc/red_water
{
	qer_editorimage textures/wub-dfwc/redwater_bright.jpg
	q3map_lightimage textures/wub-dfwc/redwater_bright.jpg
	q3map_globaltexture
	surfaceparm trans
	surfaceparm noimpact
	surfaceparm lava
	surfaceparm nolightmap
	q3map_surfacelight 150
	cull disable
	
	tesssize 128
	cull disable
	deformVertexes wave 100 sin 0 1 .5 .5
		{
			map textures/wub-dfwc/redwater_dark.jpg
			tcMod turb .3 .2 1 .05
			tcMod scroll .01 .01
		}	
		{
			map textures/wub-dfwc/redwater_bright.jpg
			blendfunc GL_ONE GL_ONE
			tcMod turb .2 .1 1 .05
			tcMod scale .5 .5
			tcMod scroll .01 .01
		}
}