textures/dksancient/sandtech
{
    {
        map textures/dksancient/glow5.tga
        blendFunc GL_ONE GL_ZERO
        tcMod scroll 0 0.125
    }
    {
        map textures/dksancient/glow5.tga
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.5 0.05 0 1
        tcMod scroll 0 -0.5
        tcMod rotate 0.25
    }
    {
        map textures/dksancient/sandtech.tga
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    }
    {
        map $lightmap
        blendFunc GL_DST_COLOR GL_SRC_COLOR
    }
}

textures/dksancient/sandtechred
{
	qer_editorimage	textures/dksancient/glow6.tga
    {
        map textures/dksancient/glow6.tga
        blendFunc GL_ONE GL_ZERO
        tcMod scroll 0 0.125
    }
    {
        map textures/dksancient/glow6.tga
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.5 0.05 0 1
        tcMod scroll 0 -0.5
        tcMod rotate 0.25
    }
    {
        map textures/dksancient/sandtechred.tga
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    }
    {
        map $lightmap
        blendFunc GL_DST_COLOR GL_SRC_COLOR
    }
}

textures/dksancient/strim
{
    {
        map textures/dksancient/glow5.tga
        blendFunc GL_ONE GL_ZERO
        tcMod scroll 0 0.125
    }
    {
        map textures/dksancient/glow5.tga
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.5 0.05 0 1
        tcMod scroll 0 -0.5
        tcMod rotate 0.25
    }
    {
        map textures/dksancient/strim.tga
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    }
    {
        map $lightmap
        blendFunc GL_DST_COLOR GL_SRC_COLOR
    }
}

textures/dksancient/strimred
{
    {
        map textures/dksancient/glow6.tga
        blendFunc GL_ONE GL_ZERO
        tcMod scroll 0 0.125
    }
    {
        map textures/dksancient/glow6.tga
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.5 0.05 0 1
        tcMod scroll 0 -0.5
        tcMod rotate 0.25
    }
    {
        map textures/dksancient/strimred.tga
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    }
    {
        map $lightmap
        blendFunc GL_DST_COLOR GL_SRC_COLOR
    }
}

textures/dksancient/bflag
{
	deformVertexes wave 194 sin 0 3 0 .4
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
    cull none
    {
        map textures/dksancient/bflag.tga
        tcGen environment
        tcmod scale 9 3
        tcmod scroll .1 .7
        blendFunc GL_ONE GL_ONE
        rgbGen lightingDiffuse
    }
}

textures/dksancient/rflag
{
	deformVertexes wave 194 sin 0 3 0 .4
	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans
	surfaceparm nomarks
    cull none
    {
        map textures/dksancient/rflag.tga
        tcGen environment
        tcmod scale 9 3
        tcmod scroll .1 .7
        blendFunc GL_ONE GL_ONE
        rgbGen lightingDiffuse
    }
}

textures/dksancient/waterfall1
{
	qer_editorimage	textures/dksancient/waterf.tga
	surfaceparm	slick
	surfaceparm	metalsteps
    {
        map textures/dksancient/waterf.tga
        alphaFunc GE128
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        depthWrite
        rgbGen identity
        tcMod scroll 0 -1
    }
    {
        map textures/dksancient/waterblocks.jpg
        blendFunc GL_DST_COLOR GL_ONE
    }
    {
        map $lightmap
        alphaFunc GE128
        blendFunc GL_DST_COLOR GL_SRC_COLOR
    }
}

textures/dksancient/waterfall2
{
	qer_editorimage	textures/dksancient/waterf.tga
	surfaceparm	nonsolid
	surfaceparm	water
	cull	disable
    {
        map textures/dksancient/waterf.tga
        alphaFunc GE128
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        depthWrite
        rgbGen identity
        tcMod scroll 0 -1
    }
    {
        map $lightmap
        alphaFunc GE128
        blendFunc GL_DST_COLOR GL_SRC_COLOR
    }
}

textures/dksancient/raeye
{
	qer_editorimage	textures/dksancient/raeye.tga
	surfaceparm	nodlight
	surfaceparm	nonsolid
	surfaceparm	trans
	q3map_nolightmap
	q3map_onlyvertexlighting
	q3map_vlight
	q3map_novertexshadows
	cull	disable
    {
        map textures/dksancient/raeye.tga
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    }
}