textures/phachateau/phasky/pha_moon
{
	nocompress
	cull none
	q3map_nofog
	{
		map textures/pha_chateau/phasky/pha_moon.tga
		blendFunc blend
		rgbGen identityLighting
	}
}


textures/phachateau/skychateau
{

	nocompress
	qer_editorimage textures/pha_chateau/phasky/pha_moon
	surfaceparm noimpact
	surfaceparm nolightmap
	q3map_globaltexture
	surfaceparm sky
	q3map_skylight 75 3
	q3map_sunExt 0.75 0.7 0.6 75 100 30 2 16
	
	sunshader textures/phachateau/phasky/pha_moon
	q3map_nofog
	skyparms textures/pha_chateau/phasky/phasky - -


}


textures/pha_chateau/phafoliage
{
	qer_trans 0.3
	qer_editorimage textures/pha_chateau/pha_foliage.tga
	cull disable
	nomipmaps
	nopicmip

	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm grasssteps
	surfaceparm pointlight
	surfaceparm trans

	implicitMask textures/pha_chateau/pha_foliage.tga
}

textures/pha_chateau/pha_carpet
{
	surfaceparm carpetsteps
	implicitMap -
}


textures/pha_chateau/fog
{
	qer_editorimage textures/sfx/fog_grey1.tga
	
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	
	fogparms ( 0.09411 0.09803 0.12549 ) 4096
}


textures/chateau/window_c08a
{
	qer_editorimage textures/chateau/window_c08a.tga
	//q3map_lightimage textures/lightimage/soft_blue.tga
	//q3map_lightsubdivide 128
	//q3map_surfacelight 300
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/chateau/window_c08a.tga
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen identity
	}
	{
		map textures/chateau/window_c04.blend.tga
		blendfunc GL_ONE GL_ONE
	}
}



textures/rayban/barrel1
{
	qer_editorimage models/mapobjects/rayban/barrel1.tga
	surfaceparm woodsteps
	implicitMap models/mapobjects/rayban/barrel1.tga
}

// candle md3 model by rayban
// ** note - this model uses the roq_flame shader and video file.
//

models/mapobjects/rayban/candle/candlewax
{
	qer_editorimage models/mapobjects/rayban/candle/wax.tga

	{
		map textures/effects/envmap_slate.tga
		tcGen environment
	}
	{
		map models/mapobjects/rayban/candle/wax.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map models/mapobjects/rayban/candle/wax_add.tga
		blendfunc add
		rgbGen wave triangle .5 .2 .5 3.5
	}
}

models/mapobjects/rayban/candle/candlewax2
{
	
	qer_editorimage models/mapobjects/rayban/candle/wax.tga

	{
		map textures/effects/envmap_slate.tga
		tcGen environment
	}
	{
		map models/mapobjects/rayban/candle/wax.tga
		blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
	{
		map models/mapobjects/rayban/candle/wax_add.tga
		blendfunc add
		rgbGen wave triangle .5 .2 1 3.3
	}
}

// roq flame shader
// uses a roq video file and blend additive to simulate flame
// raybanb@gmail.com

textures/sfx/roq_flame
{
	cull none
	q3map_surfacelight 400

	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	
	qer_editorimage textures/sfx/roq_flame.tga
	{
		videomap video/roq_flame.roq
		blendfunc add
		rgbGen identity
	}
}

// roq flame shader
// uses a roq video file and blend additive to simulate flame
// raybanb@gmail.com

textures/sfx/roq_candle_flame
{
	cull none
	q3map_surfacelight 250
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	
	qer_editorimage textures/sfx/roq_candle_flame.tga
	{
		videomap video/roq_candle_flame.roq
		blendfunc add
		rgbGen identity
	}
}
