shader()
{
    cull("none")
//    sortweight("preblended")
    sortweight("translucent0")
//    Shaderquality(3)

    pass()
    {
		PixelShader("WaterSwamp.psh")
        stream()
        {
            position( "float3", "SS_POSITION" )
            texcoord( 0, "float3", "SS_TEXCOORD0" )
            texcoord( 1, "float2", "SS_TEXCOORD1" )
        }
        tmu()
        {
            texture()
            {
                usermap()
                addressfunc("clamp", "clamp", "clamp")
            }
            texgen("projected")
        }
        tmu()
        {
            texture()
            {
                image(txLemna)
            }
        }
        tfactor(vRed, vGreen, vBlue, vOpacity)
        blendfunc("src_alpha", "inv_src_alpha")
        depthfunc("lequal", 0)
    }
}
