<xml>

    <parameterretrieval>
        <ParameterRetrieval_float3float id="default"           float3="DiffuseColour" float="Alpha" />
        <ParameterRetrieval_xyzw        id="ui_mask_ramp"      x="Ramp"    y="Feather" />
        <ParameterRetrieval_xyzw        id="ui_image_scroller" x="scrollX" y="scrollY" />
        <ParameterRetrieval_xyzw        id="ui_ramp"           x="RampMin" y="RampMax" />
        <ParameterRetrieval_xyzw        id="ui_image_ramp"     x="Ramp"    y="RampScale" />
        <ParameterRetrieval_test        id="ui_env"            w="1.0" />
        <ParameterRetrieval_xyzw        id="ui_env_2"          x="Map2UOffset" y="Map2VOffset" />
        <ParameterRetrieval_xyzw        id="ui_uv_instanced"   x="uOffset" y="vOffset" z="uScale" w="vScale" />
        <ParameterRetrieval_xyzw        id="ui_image_scaler"   x="ScaleX"  y="ScaleY" />
        <ParameterRetrieval_xyzw        id="ui_dirt"           x="DirtLevel"  y="Dirt2Level" />
        <ParameterRetrieval_xyzw        id="ui_image_adjust"   x="DiffuseContrast"  y="DiffuseBrightness" z="DiffuseSaturation"  w="DiffuseTint" />
        <ParameterRetrieval_xyzw        id="ui_image_reveal"   x="RevealMaskValue"  y="RevealMaskPower" z="DesaturateDiffuseImage"  />
        <ParameterRetrieval_xyzw        id="ui_video_desaturate"                                        z="DesaturateDiffuseImage" w="DarkenDiffuseImage" />
        <ParameterRetrieval_xyzw        id="ui_hgradient"      x="GradientAlpha" />
    </parameterretrieval>

    <shaderinstancepacker>
        <ShaderInstancePacker_Default id="default" />
        <ShaderInstancePacker_Group   id="group" />
    </shaderinstancepacker>

    <shaderinstancepackermapping                     default="default" >
        <map from="ui_3d_colour"                       param="group" />
    </shaderinstancepackermapping>

    <parameterretrievalmapping                                  defaultparam0="default" >
        <map from="ui_3d_colour_d"                              param1="ui_dirt" />
        <map from="ui_3d_colour_dd"                             param1="ui_dirt" />
        <map from="ui_2d_image_adjust"                          param1="ui_image_adjust" />
        <map from="ui_rts_capture"                              param1="ui_image_adjust" />
        <map from="ui_2d_hologram"                              param1="ui_image_adjust" />
        <map from="ui_2d_image_ramp"                            param1="ui_image_ramp" />
        <map from="ui_2d_image_mask_ramp"                       param1="ui_mask_ramp" />
        <map from="ui_2d_uv_instanced"                          param1="ui_uv_instanced" />
        <map from="ui_2d_uv_instanced_sep"                      param1="ui_uv_instanced" />
        <map from="ui_bokeh_text"                      			    param1="ui_uv_instanced" />
        <map from="ui_2d_image_sep"                             param1="ui_image_scroller" />
        <map from="ui_bokeh_fake_mask_text"                     param1="ui_uv_instanced" />
        <map from="uio_mask_text"                      			    param1="ui_uv_instanced" />
        <map from="ui_2d_image_scroll"                          param1="ui_image_scroller" />
        <map from="ui_osd_2d_image_scroll"                      param1="ui_image_scroller" />
        <map from="ui_2d_imagealpha_scroll"                     param1="ui_image_scroller" />
        <map from="ui_2d_mask_ramp"                             param1="ui_mask_ramp" />
        <map from="ui_2d_image_radial_ramp"                     param1="ui_mask_ramp" />
        <map from="ui_3d_image_ramp"                            param1="ui_image_ramp" />
        <map from="ui_3d_image_scroll"                          param1="ui_image_scroller" />
        <map from="ui_3d_mask_ramp"                             param1="ui_mask_ramp" />
        <map from="ui_2d_ramp"                                  param1="ui_ramp" />
        <map from="ui_2d_image_scaler"                          param1="ui_image_scaler" />
        <map from="ui_overlay_image_scaler"                     param1="ui_image_scaler" />
        <map from="ui_env_city"                                 param0="ui_env" />
        <map from="ui_env_sky"                                  param0="ui_env"  param1="ui_env_2"/>
        <map from="ui_env_floor"                                param0="ui_env" />
        <map from="ui_env_colour"                               param0="ui_env" />
        <map from="ui_screen_stencil"                           param0="ui_env" />
        <map from="ui_env_image"                                param0="ui_env" />
        <map from="ui_unlit_colour_d"                           param1="ui_dirt" />
        <map from="ui_3d_unlit_colour_d"                        param1="ui_dirt" />
        <map from="ui_unlit_uv_instanced"                       param1="ui_uv_instanced" />
        <map from="ui_unlit_image_scroll"                       param1="ui_image_scroller" />
        <map from="ui_image_reveal"                             param1="ui_image_reveal" />
        <map from="ui_3d_image_reveal"                          param1="ui_image_reveal" />
        <map from="ui_3d_image_reveal_foil"                     param1="ui_image_reveal" />
        <map from="ui_3d_metallic_reveal"                       param1="ui_image_reveal" />
        <map from="ui_3d_ref_hgradient"                         param1="ui_hgradient" />
        <map from="ui_2d_video"                                 param1="ui_video_desaturate" />
        <map from="ui_3d_video"                                 param1="ui_video_desaturate" />
        <map from="ui_unmask_radial_ramp"                       param1="ui_mask_ramp" />
    </parameterretrievalmapping>

    <!-- Default and remaps for texture font render types, we need to keep remapping these -->
    <defaulttexturefont default="ui_2d_uv_instanced" />
    <remap from="ui_unlit_colour" to="ui_unlit_uv_instanced" />
    <remap from="ui_overlay_colour" to="ui_overlay_uv_instanced" />
    <remap from="ui_2d_osd_special_text"      to="ui_2d_osd_special_text" />
    <remap from="ui_2d_horizontal_gradient"   to="ui_2d_horizontal_gradient" />
    <remap from="ui_2d_uv_instanced_sep"  to="ui_2d_uv_instanced_sep" />
    <remap from="ui_bokeh_text"  to="ui_bokeh_text" />
    <remap from="ui_bokeh_fake_mask_text"  to="ui_bokeh_fake_mask_text" />
	<remap from="ui_frosted_glass_text"  to="ui_frosted_glass_text" />
    <remap from="uio_mask_text"  to="uio_mask_text" />
    <remap from="ui_grid2_career_hard_light"  to="ui_grid2_career_hl_text" />
    <remap from="ui_2d_uv_instanced_composite"  to="ui_2d_uv_instanced_composite" />
    
    <!-- Default shader groups per render type -->
    <mapping type="instanced"         default="ui_3d_colour" />
    <mapping type="instancedDepth" default="ui_3d_colour" />
    <mapping type="ingame" default="ui_3d_colour" />
    <mapping type="ingameDepth" default="ui_3d_colour" />
    <mapping type="pregarage" default="ui_3d_colour" />
    <mapping type="osd" default="ui_2d_colour" />
    <!-- Texture Font Mapping -->
    <mapping type="texture_font"          default="ui_2d_uv_instanced"  defaultPermissable="true" />
    
    <mapping type="texture_font_osd"      default="ui_2d_uv_instanced"  defaultPermissable="true" />
    
</xml>
