<?xml version="1.0" encoding="utf-8"?>
<program type="arb">

    <define name="BLEND" value="1"/>

    <vertex file="arb/terrain_common.vp">
        <uniform name="sunColor" loc="0" type="vec3"/>
        <uniform name="textureTransform" loc="1" type="vec2"/>
        <uniform name="losTransform" loc="2" type="vec2"/>
        <uniform name="shadowTransform" loc="3" type="mat4"/>
        <uniform name="shadowScale" loc="7" type="vec4"/>
        <uniform name="sunDir" loc="8" type="vec3"/>
        <uniform name="transform" loc="9" type="mat4"/>
        <stream name="pos"/>
        <stream name="normal"/>
        <stream name="uv0"/>
        <stream name="uv1"/>
    </vertex>

    <fragment file="arb/terrain_common.fp">
        <uniform name="baseTex" loc="0" type="sampler2D"/>
        <uniform name="blendTex" loc="1" type="sampler2D"/>
        <uniform name="shadowTex" loc="2" type="sampler2DShadow"/>
        <uniform name="losTex" loc="3" type="sampler2D"/>

        <uniform name="ambient" loc="0" type="vec3"/>
        <uniform name="shadowScale" loc="2" type="vec4"/>
    </fragment>

</program>
