Terrain Alphasplat Program         Terrain Alpha Splatting - program

Be sure to change the source to whatever filename you gave your shader.

If you want to, you can convert it to hlsl simply by changing 'cg' to 'hlsl' and uncomment the target-lines and comment the profiles-lines.

vertex_program AlphaSplatTerrain/VP cg
{
    source AlphaSplatTerrain.cg
    entry_point TerrainVP
    //target vs_2_0
    profiles vs_2_0 arbvp1
}

fragment_program AlphaSplatTerrain/FP cg
{
    source AlphaSplatTerrain.cg
    entry_point TerrainFP
    //target ps_2_0
    profiles ps_2_0 arbfp1
}