shader()
{
    Cull("ccw")
    pass()
    {
//        vertexshader("TerrainGlacier.vsh")
        Pixelshader("TerrainGlacier.psh")

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

        tmu()
        {
			TexGen("planar")
			TexMod("scale", "const", vTerrainSize, 0, 0, "const", vTerrainSize, 0, 0)
            texture()
            {
                Image(txTerrainColor)
                addressfunc("clamp", "clamp", "clamp")
            }
        }

        tmu()
        {
			TexGen("planar")
			TexMod("scale", "const", vDetailsSize, 0, 0, "const", vDetailsSize, 0, 0)
            texture()
            {
                Image(txTerrainDetails)
            }
        }

        tmu()
        {
			TexGen("planar")
			TexMod("scale", "const", vTerrainSize, 0, 0, "const", vTerrainSize, 0, 0)
            texture()
            {
                Image(txTerrainDetailsMask)
            }
        }

        tmu()
        {
            TexGen("reflection")
            Texture()
            {
                Cubemap("CH_T_Env.png","CH_T_Env.png","CH_T_Env.png","CH_T_Env.png","CH_T_Env.png","CH_T_Env.png")
//				Cubemap(txCubemap0, txCubemap1, txCubemap2, txCubemap3,txCubemap4, txCubemap5)
            }
        }

    }
//    lightpass()
//    !include("..\\lights\\spot_shadowmap.mtt")
}
