//----------------------------------------------------------------------
// helpers:

textures/UJE_00/empty
{
//	implicit map -
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nolightmap
	cull none
	{
		map textures/UJE_00/empty.tga

		blendFunc GL_ONE GL_ONE
		alphaFunc GE128
		rgbGen identity
	}
}

textures/UJE_00/uje_visblocker
{
	qer_editorimage textures/UJE_00/uje_visblocker.tga

	surfaceparm nomarks
	surfaceparm nolightmap
	{
		map textures/UJE_00/uje_visblocker.tga
		rgbGen identity
	}
}

// de rode transparante fuelcan texture
textures/UJE_00/uje_objective
{
	qer_editorimage textures/UJE_00/uje_objective.tga
	qer_trans 0.5

//	surfaceparm nolightmap
	surfaceparm nonsolid 
	surfaceparm nomarks
//	{
//		map $lightmap
//		rgbGen identity
//	}
	{
		map textures/UJE_00/uje_objective.tga
		rgbGen identity
		blendFunc blend
		alphaGen const 0.5
	}
}

//textures/UJE_00/alpha50
//{
//	qer_trans 0.5
//	q3map_alphaMod volume
//	q3map_alphaMod set 0.5
//	surfaceparm nodraw
//	surfaceparm nonsolid
//	surfaceparm trans
//}

//----------------------------------------------------------------------
// de zelf-lichtende texture van het UJE-cafe
textures/UJE_00/uje_cafe
{
//	q3map_lightimage textures/UJE_00/uje_cafe.tga
	qer_editorimage textures/UJE_00/uje_cafe.tga
	q3map_surfacelight 2000
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/UJE_00/uje_cafe.tga
		blendFunc filter //GL_DST_COLOR GL_ZERO
		rgbGen identity //vertex
	}
}

// de zelf-lichtende texture van de kapper
textures/UJE_00/uje_kapper
{
	qer_editorimage textures/UJE_00/uje_kapper.tga
	q3map_surfacelight 300
	surfaceparm nomarks
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/UJE_00/uje_kapper.tga
		blendFunc filter //GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}


//----------------------------------------------------------------------
// de brabantse vlag
textures/UJE_00/flagnb
{
	qer_editorimage textures/UJE_00/flagnb.tga
	cull disable
	deformVertexes wave 194 sin 0 3 0 .4
	implicitMap -
}

// de rode en blauwe [UJE]Clan vlaggen (a remake from someone elses flag)
textures/UJE_00/uje_blue_flag
{
	qer_editorimage textures/UJE_00/uje_blue_flag.tga
	surfaceparm nomarks
	surfaceparm pointlight
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm alphashadow

	deformVertexes wave 256 sin 0 3 0 .4

//	implicitMask -			//nonono

//	{				//nonono
//		map $lightmap
//		rgbGen identity
//	}
	{
		map textures/UJE_00/uje_blue_flag.tga
		blendFunc blend //GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128 //GT0
		depthWrite
		rgbGen identity
	}
}
textures/UJE_00/uje_red_flag
{
	qer_editorimage textures/UJE_00/uje_red_flag.tga
	surfaceparm nomarks
	surfaceparm pointlight
	surfaceparm trans

	deformVertexes wave 256 sin 0 3 0 .4

//	implicitMask -

//	{
//		map $lightmap
//		rgbGen identity
//	}
	{
		map textures/UJE_00/uje_red_flag.tga
		blendFunc blend // GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		depthWrite
		rgbGen identity
	}
}

// de vervangende tank texture
textures/UJE_00/churchill_flat_uje
{
	{
		map textures/UJE_00/churchill_flat_uje.tga //models/mapobjects/tanks_sd/churchill_flat_oasis.tga
		rgbGen lightingDiffuse
	}
}

// de donkere stenen grotten
textures/UJE_00/uje_cave
{
//	q3map_nonplanar
//	q3map_shadeangle 60
	qer_editorimage textures/stone/mxrock3_a.tga
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/stone/mxrock3_a.tga
		blendFunc filter
	}
}

textures/UJE_00/uje_casemate
{
	qer_editorimage textures/UJE_00/uje_casemate.tga
	surfaceparm metalsteps
	implicitMap -
}

//-- pilsje
textures/UJE_00/uje_pilsje_top
{
	qer_editorimage textures/UJE_00/uje_pilsje_top.tga
	surfaceparm nomarks
	surfaceparm nonsolid
	implicitMap -
}
textures/UJE_00/uje_pilsje_up
{
	qer_editorimage textures/UJE_00/uje_pilsje_up.tga
	q3map_nonplanar
	q3map_shadeangle 100
	surfaceparm nomarks
	surfaceparm nonsolid
//	implicitMap -
	{
		map textures/UJE_00/uje_pilsje_up.tga
		rgbGen identity
	}
//	{
//		map $lightmap
//		tcGen lightmap
//		blendFunc GL_DST_COLOR GL_ZERO
//		rgbGen identity
//	}
}
textures/UJE_00/uje_pilsje_down
{
	qer_editorimage textures/UJE_00/uje_pilsje_down.tga
	qer_trans .95
	q3map_nonplanar
	q3map_shadeangle 100
	surfaceparm nomarks
	surfaceparm nonsolid
//	implicitMap -
	{
		map textures/UJE_00/uje_pilsje_down.tga
//		blendFunc GL_SRC_ALPHA GL_ONE //GL_ONE_MINUS_SRC_ALPHA
//		alphaGen const 0.95
		rgbGen identity
	}
//	{
//		map $lightmap
//		tcGen lightmap
//		blendFunc GL_DST_COLOR GL_ZERO
//		rgbGen identity
//	}
	{
		map $whiteimage
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
}
//--


textures/UJE_00/uje_schroef
{
	qer_editorimage textures/UJE_00/uje_schroef.tga
	cull none
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	{
		clampMap textures/UJE_00/uje_schroef.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
	}
}
textures/UJE_00/uje_schroef_rotating
{
	qer_editorimage textures/UJE_00/uje_schroef.tga
	cull none
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	{
		clampMap textures/UJE_00/uje_schroef.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128
		rgbGen identity
		tcMod rotate 1440
	}
}

textures/UJE_00/uje_goud
{
	qer_editorimage textures/UJE_00/uje_goud.tga
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm metalsteps //!
	{
		map textures/UJE_00/uje_goud.tga
	}
	{
		map textures/effects/envmap_gold.tga
		blendfunc gl_src_alpha gl_one
//		alphaGen const 0.5
		tcGen environment
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
		depthFunc equal	
	}
}

textures/UJE_00/uje_goud1
{
	qer_editorimage textures/UJE_00/uje_goud1.tga
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm metalsteps //!
	{
		map textures/UJE_00/uje_goud1.tga
	}
	{
		map textures/effects/envmap_gold.tga
		blendfunc gl_src_alpha gl_one
//		alphaGen const 0.5
		tcGen environment
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
		rgbgen identity
		depthFunc equal	
	}
}

textures/UJE_00/uje_metal_white
{
	qer_editorimage textures/UJE_00/uje_metal_white.tga
	surfaceparm metalsteps
	implicitMap -
}

textures/UJE_00/uje_rocks
{
//	qer_editorimage textures/UJE_00/uje_rock_edged_smooth.tga
	qer_editorimage textures/desert_sd/rock_edged_smooth.tga
	surfaceparm nonsolid
	{
		map $lightmap
		rgbGen identity
	}
	{
//		map textures/UJE_00/uje_rock_edged_smooth.tga
		map textures/desert_sd/rock_edged_smooth.tga
		blendFunc filter
	}
}

//--- een stoplicht
textures/UJE_00/sign_red
{
	qer_editorimage textures/UJE_00/sign_red.tga
	surfaceparm metalsteps
//	sort opaque
//	implicitMap -
	{
		map textures/UJE_00/sign_red.tga
		rgbGen vertex
	}
}

textures/UJE_00/sign_green
{
	qer_editorimage textures/UJE_00/sign_green.tga
	surfaceparm metalsteps
//	sort opaque
//	implicitMap -
	{
		map textures/UJE_00/sign_green.tga
		rgbGen vertex
	}
}

textures/UJE_00/sign_flashing
{
	qer_editorimage textures/UJE_00/sign_off.tga
	surfaceparm metalsteps
	{
		animMap 2 textures/UJE_00/sign_red.tga textures/UJE_00/sign_off.tga
		rgbGen vertex
	}
}
//---

//--- een waarschuwings-licht
textures/UJE_00/sign_red_nolight
{
	qer_editorimage textures/UJE_00/sign_red_nolight.tga
	{
		map textures/UJE_00/sign_red_nolight.tga
		rgbGen vertex
	}
}

textures/UJE_00/sign_white_nolight
{
	qer_editorimage textures/UJE_00/sign_white_nolight.tga
	{
		map textures/UJE_00/sign_white_nolight.tga
		rgbGen vertex
	}
}
//---

// een houten deur
textures/UJE_00/uje_deur
{
	qer_editorimage textures/UJE_00/uje_deur.tga
	implicitMap -
}

// een asfalt weg
textures/UJE_00/asphalt
{
	qer_editorimage textures/UJE_00/asphalt.tga
	implicitMap -
}

// een gele lijn op een asphalt weg
textures/UJE_00/asphalt_line
{
	qer_editorimage textures/UJE_00/asphalt_line.tga
	implicitMap -
}

// reddingsboei
textures/UJE_00/uje_rescue_niek
{
	qer_editorimage textures/UJE_00/uje_rescue_niek
	surfaceparm nonsolid
	implicitMap -
}

// hooi
textures/UJE_00/hay
{
	qer_editorimage textures/UJE_00/hay.tga
	surfaceparm grasssteps
	implicitMap -
}

// een betonnen muur
textures/UJE_00/concretewall
{
	qer_editorimage textures/UJE_00/concretewall.tga
	implicitMap -
}

//--- een rode bakstenen muur
// midden
textures/UJE_00/redbrick
{
	qer_editorimage textures/UJE_00/redbrick.tga
	implicitMap -
}

// een onderkant met betonnen rand
textures/UJE_00/redbrick_bottom
{
	qer_editorimage textures/UJE_00/redbrick_bottom.tga
	implicitMap -
}

// een raam
textures/UJE_00/redbrick_w
{
	qer_editorimage textures/UJE_00/redbrick_w.tga
	implicitMap -
}
//---

textures/UJE_00/uje_insects
{
	qer_editorimage textures/UJE_00/uje_insects.tga
	cull none
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
//	surfaceparm pointlight
	surfaceparm trans
//	deformvertexes autosprite

	tessSize 48
	deformVertexes wave 16 sin 0 24 0 2.0

	{
		map textures/UJE_00/uje_insects.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaFunc GE128 //GT0
		rgbGen wave sin .6 .2 0 .6

		tcmod rotate 4
		tcmod turb 0 0.5 0.5 0.45
		tcmod scroll 0.1 -0.35

	}
}

textures/UJE_00/uje_glas_in_lood
{
	qer_editorimage textures/UJE_00/uje_glas_in_lood.tga
	qer_trans .50

	surfaceparm trans
	surfaceparm lightfilter		// i don't see it (like the water)  :-(
	surfaceparm alphashadow		// why not??
	surfaceparm pointlight
	surfaceparm nonsolid
	surfaceparm nomarks

//	cull none	//backside doesn't look fine..
//	sort additive

//	{
//		map $lightmap
//		rgbGen identity
//	}
	{
		map textures/UJE_00/uje_glas_in_lood.tga
		alphaGen const 0.50
		blendfunc blend //GL_ONE GL_ZERO //GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA //blend //GL_DST_COLOR GL_ZERO //filter
		rgbGen vertex //identity
//		depthwrite
	}
}

textures/UJE_00/uje_glas_in_lood_2
{
	qer_editorimage textures/UJE_00/uje_glas_in_lood.tga
	qer_trans .50

	surfaceparm trans
	surfaceparm lightfilter		// i don't see it (like the water)  :-(
	surfaceparm alphashadow		// why not??
	surfaceparm pointlight
	surfaceparm nonsolid
	surfaceparm nomarks

//	cull none	//backside doesn't look fine..
//	sort additive

//	{
//		map $lightmap
//		rgbGen identity
//	}
	{
		map textures/UJE_00/uje_glas_in_lood.tga
		alphaGen const 0.50
		blendfunc filter
		rgbGen identity
//		depthwrite
	}
}




//----------------------------------------------------------------------
// particles:

//textures/UJE_00/spray
//{
//	qer_editorimage textures/UJE_00/water.tga
//	deformvertexes autosprite
//	surfaceparm nolightmap
//	surfaceparm nonsolid
//	surfaceparm trans
//	cull disable
//	{
//		clampmap textures/UJE_00/water.tga
//		alphagen wave sin 0.8 0.2 0 0.8
//		tcmod stretch sin 1 0.1 0.1 1
//		tcmod rotate 60
//		blendfunc gl_src_alpha gl_one
//	}
//}


