kabcorp/transblue
{
	qer_editorimage icons/icona_bfg.tga
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	cull disable
	nomipmaps
	qer_trans 0.4
	{
		map icons/icona_bfg.tga
		blendfunc add
		rgbGen wave sin 0.8 0.05 0 1 
		tcGen environment 
	}
}

//Old sky, should be replaced with toxicsky
textures/kabcorp/sky1
{
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky
	skyParms - 512 -
	{
		map textures/skies/dimclouds.tga
		blendfunc gl_one_minus_dst_color gl_one
		tcMod scroll -0.01 0.01
		tcMod scale 2 2
	}
	{
		map textures/sfx/tesla1.tga
		blendfunc gl_one_minus_dst_color gl_one
		tcMod scroll 0.01 0
		tcMod scale 1 1
		depthWrite
	}
}

textures/kabcorp/water
{
	qer_editorimage textures/liquids/pool3d_3.tga
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm water
	cull disable
	deformVertexes wave 64 sin 0.5 0.5 0 0.5 
	qer_trans 0.5
	q3map_globaltexture
	{
		map textures/liquids/pool3d_5.tga
		blendfunc gl_dst_color gl_one
		rgbGen identity
		tcMod scale 0.5 0.5
		tcMod transform 1.5 0 1.5 1 1 2
		tcMod scroll -0.05 0.001
	}
	{
		map textures/liquids/pool3d_6.tga
		blendfunc gl_dst_color gl_one
		rgbGen identity
		tcMod scale 0.5 0.5
		tcMod transform 0 1.5 1 1.5 2 1
		tcMod scroll 0.025 -0.001
	}
	{
		map textures/liquids/pool3d_3.tga
		blendfunc gl_dst_color gl_one
		rgbGen identity
		tcMod scale 0.25 0.5
		tcMod scroll 0.001 0.025
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}

textures/KABCORP/Lava
{
	surfaceparm lava
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	cull disable
	deformVertexes wave 100 sin 3 2 0.1 0.1 
	tessSize 128
	q3map_globaltexture
	{
		map textures/liquids/lavahell.tga
		tcMod turb 0 0.2 0 0.1
	}
}

textures/kabcorp/DarkTin
{
	qer_editorimage textures/base_wall/bluemetal1b.tga
	{
		map gfx/misc/console01.tga
		rgbGen identity
		tcMod scale 1 1
		tcGen environment 
	}
	{
		map textures/base_wall/bluemetal1b_shiny.tga
		blendfunc gl_one_minus_src_alpha gl_src_alpha
		rgbGen identity
		tcMod scale 2 2
	}
	{
		map $lightmap 
		blendfunc filter
		rgbGen identity
		tcGen lightmap 
	}
}

// viewBloodBlend gives the blended directional cue when you get hit

kabcorp/telep
{
	qer_editorimage gfx/2d/numbers/zero_32b.tga
	nopicmip
	{
		map icons/teleporter.tga
		blendfunc blend
	}
}

