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

    <vertex file="arb/model_common.vp">
        <uniform name="cameraPos" loc="0" type="vec3"/>
        <uniform name="sunDir" loc="1" type="vec3"/>
        <uniform name="sunColor" loc="2" type="vec3"/>
        <uniform name="losTransform" loc="3" type="vec2"/>
        <uniform name="shadowTransform" loc="4" type="mat4"/>
        <uniform if="USE_INSTANCING" name="instancingTransform" loc="8" type="mat4"/>
        <uniform name="shadowScale" loc="12" type="vec4"/>
        <stream name="pos"/>
        <stream name="normal"/>
        <stream name="uv0"/>
	<stream name="uv1" if="USE_AO"/>
    </vertex>

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

        <uniform if="USE_OBJECTCOLOR" name="objectColor" loc="0" type="vec3"/>
        <uniform if="USE_PLAYERCOLOR" name="playerColor" loc="0" type="vec3"/>
        <uniform name="shadingColor" loc="1" type="vec3"/>
        <uniform name="ambient" loc="2" type="vec3"/>
        <uniform name="shadowScale" loc="3" type="vec4"/>
        <uniform name="specularPower" loc="4" type="float"/>
        <uniform name="specularColor" loc="5" type="vec3"/>
        <uniform name="sunColor" loc="6" type="vec3"/>
    </fragment>

</program>
