textures/thecave/fog
{
	qer_editorimage textures/sfx/fog_grey1.tga
	
	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog
	
	fogparms ( 0.31 0.31 0.41 ) 1024
}

textures/thecave/terrain_rock2_grass
{
   qer_editorimage textures/thecave/rockeditor.tga
   q3map_lightImage textures/thecave/rock_1.tga
   
   q3map_forceMeta
   q3map_nonplanar
   q3map_shadeAngle 179
   q3map_lightmapAxis z
   
   q3map_tcGen ivector ( 2048 0 0 ) ( 0 2048 0 )
   q3map_tcMod rotate 33
   q3map_alphaMod dotproduct2 ( 0.15 0 0.85 )
   q3map_lightmapSampleSize 64
   q3map_globalTexture
   
   {
      map textures/thecave/rock_1.tga
      tcMod scale 8 8
      rgbGen identity
   }
   {
      map textures/thecave/grass_1.tga
      blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
      alphaFunc GE128
      rgbGen identity
      alphaGen vertex
      tcMod scale 8 8
   }
   {
      map $lightmap
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
   }
    
}

textures/thecave/roof_rock2_grass
{
   qer_editorimage textures/thecave/rockeditor.tga
   q3map_lightImage textures/thecave/rock_1.tga
   
   q3map_forceMeta
   q3map_nonplanar
   q3map_shadeAngle 179
   q3map_lightmapAxis z
   
   q3map_tcGen ivector ( 2048 0 0 ) ( 0 2048 0 )
   q3map_tcMod rotate 33
   q3map_alphaMod dotproduct2 ( -0.15 0 -0.85 )
   q3map_lightmapSampleSize 64
   q3map_globalTexture
   
   {
      map textures/thecave/rock_1.tga
      tcMod scale 8 8
      rgbGen identity
   }
   {
      map textures/thecave/grass_1.tga
      blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
      alphaFunc GE128
      rgbGen identity
      alphaGen vertex
      tcMod scale 8 8
   }
   {
      map $lightmap
      blendFunc GL_DST_COLOR GL_ZERO
      rgbGen identity
   }
    
}

textures/thecave/s_halo
{
	// Radiant properties
	qer_trans 0.75
	qer_editorimage textures/thecave/halo.tga
	
	surfaceparm trans
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm nolightmap
	nofog
	cull back
	nopicmip
	nomipmaps
	polygonoffset

	{
		map textures/thecave/halo.tga
		blendFunc add
	}
}


textures/thecave/sky_box2
{
	qer_editorimage textures/skies/fueldump_clouds.tga
	q3map_lightrgb 0.8 0.9 1.0
	q3map_skylight 85 3
	q3map_sun 1 .95 .9 200 210 90
	q3map_lightmapFilterRadius 0 64
	skyparms - 200 -
	sunshader textures/skies_sd/small_moon
	surfaceparm nodlight
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky
	{
		map textures/skies/fueldump_clouds.tga
		rgbGen identity
	}
	{
		map textures/skies/fueldump_clouds.tga
		blendfunc blend
		rgbGen identity
		tcMod scroll 0.0005 0.00
		tcMod scale 2 1
	}		
}


textures/thecave/rock_1
{
	q3map_nonplanar
	q3map_shadeangle 175
	qer_editorimage textures/thecave/rock_1.tga		
	
	{
		map $lightmap
		rgbGen identity
	}
	{
		map textures/thecave/rock_1.tga
		rgbgen identity
		blendFunc filter
	}	
}

