textures/ml_chapel/beam
{
	qer_editorimage textures/ml_chapel/beam.tga
	nocompress
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	{
		map textures/ml_chapel/beam.tga
		blendFunc add
		tcmod scroll -0.03 -0.05
//		q3map_tcMod scale 0.0625 0.0625
	}
}

textures/ml_chapel/marble_lt
{
	qer_editorimage textures/ml_chapel/marble_lt.tga

	{
		map textures/ml_chapel/marble_lt.tga
        rgbGen identity
		tcGen environment
		tcmod scale .75 .75
	}

	{
		map textures/ml_chapel/marble_lt.tga
		blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		rgbGen identity
	}
}

textures/ml_chapel/marble_dk
{
	qer_editorimage textures/ml_chapel/marble_dk.tga

	{
		map textures/ml_chapel/marble_dk.tga
        rgbGen identity
		tcGen environment
		tcmod scale .75 .75
	}

	{
		map textures/ml_chapel/marble_dk.tga
		blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_ALPHA
		rgbGen identity
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_zero
		rgbGen identity
	}
}

levelshots/ml_chapel_cc_automap
{
	nopicmip
	nocompress
	nomipmaps
	{
		clampmap levelshots/ml_chapel_cc.tga
		depthFunc equal
		rgbGen identity
	}
}

levelshots/ml_chapel_cc_trans
{
	nopicmip
	nocompress
	nomipmaps
	{
		clampmap levelshots/ml_chapel_cc.tga
		blendFunc blend
		rgbGen identity
		alphaGen vertex
	}
}

textures/ml_chapel/cweb_1
{
    surfaceparm alphashadow
    surfaceparm nomarks
    surfaceparm nonsolid
    cull disable
    deformVertexes wave 10 sin 0 2 0 0.2
    {
        map textures/ml_chapel/cweb_1.tga
        blendFunc add
//        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        rgbGen vertex

    }
}

textures/ml_chapel/torch
{
	qer_editorimage textures/ml_chapel/torch.tga
	q3map_nonplanar
	q3map_shadeangle 120
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm nomarks
	polygonOffset

	sort decal

	{
		map textures/ml_chapel/torch.tga
       	blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen identity
	}
}

textures/ml_chapel/torch
{
	polygonOffset
	surfaceparm trans
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm nomarks
	sort decal

	{
		map textures/ml_chapel/torch.tga
  		blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
		rgbGen identity
    }
}

textures/ml_chapel/flame
{
	qer_editorimage textures/sfx/flame1.tga
	cull none
	nofog
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	deformVertexes wave 6 sin .5 .5 0 .5

	{
		animMap 10 textures/sfx/flame1.tga textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave inverseSawtooth 0 1 0 10
	}
	{
		animMap 10 textures/sfx/flame2.tga textures/sfx/flame3.tga textures/sfx/flame4.tga textures/sfx/flame5.tga textures/sfx/flame6.tga textures/sfx/flame7.tga textures/sfx/flame8.tga textures/sfx/flame1.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sawtooth 0 1 0 10
	}
	{
		map textures/sfx/flameball.tga
		blendFunc GL_ONE GL_ONE
		rgbGen wave sin .6 .2 0 .6
	}
}

textures/ml_chapel/sky
{
	q3map_sunExt 0.281 0.288 0.370 200 190 20 1 8
	q3map_lightrgb 0.8 0.9 1.0
	q3map_skylight 100 3

	surfaceparm nodlight
	surfaceparm noimpact
	surfaceparm nolightmap
	surfaceparm sky

	skyparms - 512 -
}

textures/ml_chapel/window
{
	surfaceparm glass
	surfaceparm lightfilter
	cull twosided

	implicitmap -
}

textures/ml_chapel/flag
{
	qer_trans 0.9
	cull twosided
	deformVertexes wave 194 sin 0 2 0 .2
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm trans

	{
		map textures/ml_chapel/flag.tga
		alphaFunc GE128
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		depthWrite
		rgbGen identity
	}
	{
		map $lightmap
		depthFunc equal
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ml_chapel/fog
{
	qer_editorimage textures/sfx/fog_grey1.tga

	surfaceparm nodraw
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm fog

	fogparms ( 0.09411 0.09803 0.12549 ) 1536
}