Skip to main content

History: Terrain Alphasplat Program

Source of version: 3 (current)

Copy to clipboard
            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.

{CODE(wrap="1", colors="c++")}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
}{CODE}