
shader()
{//gf3
    ShaderQuality(2)
    cull("none")
    sortweight("foreground2d")
    pass()
    {
        stream()
        {
            position("float3", "SS_POSITION")
        }

        tmu()
        {
            ColorOp("arg2", "texture", "tfactor", "current")

        }

        colorgen("tfactor", "user", 0, 0, 0, "none", 0, 0, 0)
        blendfunc("dest_color", "zero")
        depthfunc("always", 0)

        nofog()
    }
    pass()
    {
        stream()
        {
            position("float3", "SS_POSITION")
        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.0025, 0, 0, "const", 0.0025, 0, 0)
            TexMod("translate", "sin", 0, 0.9, 0.005, "lin", 0, 0.006, 0)
            TexMod("translate", "lin", 0, 0.0005, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }

        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.001, 0, 0, "const", 0.001, 0, 0)
            TexMod("translate", "sin", 0, 1, 0.005, "lin", 0, 0.006, 0)
            TexMod("translate", "lin", 0, -0.0005, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }
            ColorOp("mul_add", "texture", "tfactor", "current")

        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.00065, 0, 0, "const", 0.00065, 0, 0)
            TexMod("translate", "sin", 0, 2, 0.0041, "lin", 0, 0.01, 0)
            TexMod("translate", "lin", 0, 0.001, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }
            ColorOp("mul_add", "texture", "tfactor_a", "current")

        }
        tfactor(0.45, 0.45, 0.45, 0.5)
        blendfunc("one", "one")
        depthfunc("always", 0)

        nofog()
    }

}


shader()
{//gf2
    ShaderQuality(2)
    cull("none")
    sortweight("foreground2d")
    pass()
    {
        stream()
        {
            position("float3", "SS_POSITION")
        }

        tmu()
        {
            ColorOp("arg2", "texture", "tfactor", "current")

        }

        colorgen("tfactor", "user", 0, 0, 0, "none", 0, 0, 0)
        blendfunc("dest_color", "zero")
        depthfunc("always", 0)

        nofog()
    }

    pass()
    {
        stream()
        {
            position("float3", "SS_POSITION")
        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.0025, 0, 0, "const", 0.0025, 0, 0)
            TexMod("translate", "sin", 0, 0.9, 0.005, "lin", 0, 0.006, 0)
            TexMod("translate", "lin", 0, 0.0005, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }

        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.001, 0, 0, "const", 0.001, 0, 0)
            TexMod("translate", "sin", 0, 1, 0.005, "lin", 0, 0.006, 0)
            TexMod("translate", "lin", 0, -0.0005, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }
            ColorOp("mul_add", "texture", "tfactor", "current")

        }

        tfactor(0.45, 0.45, 0.45, 0.5)

        blendfunc("one", "one")
        depthfunc("always", 0)

        nofog()
    }
    pass()
    {
        stream()
        {
            position("float3", "SS_POSITION")
        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.00065, 0, 0, "const", 0.00065, 0, 0)
            TexMod("translate", "sin", 0, 2, 0.0041, "lin", 0, 0.01, 0)
            TexMod("translate", "lin", 0, 0.001, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }
            ColorOp("mul", "texture", "tfactor_a", "current")

        }
        tfactor(0.45, 0.45, 0.45, 0.5)

        blendfunc("one", "one")
        depthfunc("always", 0)

        nofog()
    }

}


shader()
{
    ShaderQuality(1)
    cull("none")
    sortweight("foreground2d")

    pass()
    {
        stream()
        {
            position("float3", "SS_POSITION")
        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.00065, 0, 0, "const", 0.00065, 0, 0)
            TexMod("translate", "sin", 0, 2, 0.0041, "lin", 0, 0.01, 0)
            TexMod("translate", "lin", 0, 0.001, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }
            ColorOp("mul", "texture", "tfactor_a", "current")
        }

        tmu()
        {
            texgen("planar")
            TexMod("scale", "const", 0.0025, 0, 0, "const", 0.0025, 0, 0)
            TexMod("translate", "sin", 0, 0.9, 0.005, "lin", 0, 0.006, 0)
            TexMod("translate", "lin", 0, 0.0005, 0, "none", 0, 0, 0)
            texture()
            {
                Image("Bubbles.png")
            }
            ColorOp("add", "texture", "current", "current")
        }

        tfactor(0.45, 0.45, 0.45, 0.5)
        blendfunc("one", "one")
        depthfunc("always", 0)

        nofog()
    }
}


