<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater
  height="452"
  layout="topleft"
  name="prefs_graphics_advanced"
  help_topic="Preferences_Graphics_Advanced"
  single_instance="true"
  save_rect="true"
  title="ADVANCED GRAPHICS PREFERENCES"
  width="800">

<!-- This block shows Advanced Settings -->

  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="GeneralText"
    top="5"
    left="10"
    width="128">
     General
  </text>

  <slider
    control_name="RenderFarClip"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="8"
    initial_value="160"
    label="Draw distance:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="64"
    max_val="512"
    name="DrawDistance"
    top_delta="16"
    width="330">
    </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="DrawDistanceMeterText2"
    top_delta="0"
    left_delta="330"
    width="20">
     m
  </text> 
  <slider
    control_name="RenderMaxPartCount"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="256"
    initial_value="4096"
    label="Max. particle count:"
    label_width="185"
    layout="topleft"
    left="30"
    max_val="8192"
    name="MaxParticleCount"
    top_delta="16"
    width="336" />

  <slider
    control_name="RenderGlowResolutionPow"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="1"
    initial_value="8"
    label="Post process quality:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="8"
    max_val="9"
    name="RenderPostProcess"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="PostProcessText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="PostProcessText"
    top_delta="0"
    left_delta="304"
    width="65">
       Low
  </text>
  <slider
    control_name="RenderLocalLightCount"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="1"
    initial_value="256"
    label="Max. nearby lights:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="0"
    max_val="8192"
    name="MaxLights"
    top_delta="16"
    width="336" />
    <text
      type="string"
      length="1"
      follows="left|top"
      height="16"
      layout="topleft"
      top_delta="16"
      left="30"
      width="160"
      name="MaxTextureResolutionLabel"
      text_readonly_color="LabelDisabledColor">
        Maximum LOD resolution:
    </text>
    <combo_box
     control_name="RenderMaxTextureResolution"
     height="19"
     layout="topleft"
     left_pad="10"
     top_delta="0"
     name="MaxTextureResolution"
     tool_tip="Maximum resolution for 'level of detail' textures"
     width="90">
        <combo_box.item
          label="512"
          name="512"
          value="512"/>
        <combo_box.item
          label="1024"
          name="1024"
          value="1024"/>
        <combo_box.item
          label="2048"
          name="2048"
          value="2048"/>
    </combo_box>

  <check_box
    control_name="RenderVSyncEnable"
    height="16"
    initial_value="true"
    label="Enable VSync"
    layout="topleft"
    left="30"
    top_delta="16"
    name="vsync"
    tool_tip="Synchronizes the frame rate to the refresh rate of the monitor, which results in smooth performance."
    width="315" />

  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="AvatarText"
    top_delta="20"
    left="10"
    width="128">
     Avatar
  </text>

    <text
      type="string"
      length="1"
      follows="left|top"
      height="16"
      layout="topleft"
      left="30"
      top_delta="16"
      width="130"
      name="AvatarComplexityModeLabel"
      text_readonly_color="LabelDisabledColor">
        Avatar display:
    </text>

    <combo_box
     control_name="RenderAvatarComplexityMode"
     height="19"
     layout="topleft"
     left_pad="40"
     top_delta="-1"
     name="AvatarComplexityMode"
     width="150">
        <combo_box.item
          label="Limit by complexity"
          name="0"
          value="0"/>
        <combo_box.item
          label="Always show friends"
          name="1"
          value="1"/>
        <combo_box.item
          label="Only show friends"
          name="2"
          value="2"/>
    </combo_box>

  <slider
    control_name="IndirectMaxComplexity"
    tool_tip="Controls at what point a visually complex avatar is drawn as a JellyDoll"
    follows="left|top"
    height="16"
    initial_value="101"
    increment="1"
    label="Maximum complexity:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="1"
    max_val="101"
    name="IndirectMaxComplexity"
    show_text="false"
    top_delta="19"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateIndirectMaxComplexity"
      parameter="IndirectMaxComlexityText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    top_delta="0"
    left_delta="304"
    text_readonly_color="LabelDisabledColor"
    name="IndirectMaxComplexityText"
    width="65">
       0
  </text>

  <slider
    control_name="IndirectMaxNonImpostors"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="1"
    initial_value="12"
    label="Max. # animated avatars:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="1"
    max_val="66"
    name="IndirectMaxNonImpostors"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateIndirectMaxNonImpostors"
      parameter="IndirectNonImpostorsText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    top_delta="0"
    left_delta="304"
    text_readonly_color="LabelDisabledColor"
    name="IndirectMaxNonImpostorsText"
    width="65">
       0
  </text>

  <slider
    control_name="RenderAvatarLODFactor"
    follows="left|top"
    height="16"
    increment="0.125"
    initial_value="160"
    label="Detail:"
    label_width="185"
    layout="topleft"
    left="30"
    name="AvatarMeshDetail"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="AvatarMeshDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="AvatarMeshDetailText"
    top_delta="0"
    left_delta="304"
    width="65">
     Low
  </text>

  <slider
    control_name="RenderAvatarPhysicsLODFactor"
    follows="left|top"
    height="16"
    initial_value="100"
    increment=".05"
    label="Physics:"
    label_width="185"
    layout="topleft"
    left="30"
    name="AvatarPhysicsDetail"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="AvatarPhysicsDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    top_delta="0"
    left_delta="304"
    name="AvatarPhysicsDetailText"
    width="65">
       Low
  </text>

  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="HardwareText"
    top_delta="20"
    left="10"
    width="128">
     Hardware
  </text>


  <check_box
    control_name="RenderAnisotropic"
    height="16"
    label="Anisotropic Filtering (slower when enabled)"
    layout="topleft"
    left="30"
    name="ani"
    top_delta="16"
    width="256" />

  <check_box
    control_name="RenderCompressTextures"
    height="16"
    initial_value="true"
    label="Enable Texture Compression (requires restart)"
    layout="topleft"
    left="30"
    top_delta="16"
    name="texture compression"
    tool_tip="Compresses textures in video memory, allowing for higher resolution textures to be loaded at the cost of some color quality."
    width="315" />

  <check_box
    control_name="RenderHiDPI"
    height="16"
    initial_value="true"
    label="Enable support for HiDPI displays (requires restart)"
    layout="topleft"
    left="30"
    top_delta="16"
    name="use HiDPI"
    tool_tip="Enable OpenGL for High-Resolution Drawing."
    width="315" />
    <text
      type="string"
      length="1"
      follows="left|top"
      height="20"
      layout="topleft"
      left="30"
      name="antialiasing label"
      top_delta="20"
      width="130">
        Antialiasing:
    </text>
    <combo_box
      control_name="RenderFSAAType"
      height="20"
      initial_value="false"
      label="Antialiasing"
      layout="topleft"
      left_pad="40"
      name="fsaa"
      top_delta="0"
      width="90">
        <combo_box.item
          label="Disabled"
          name="FSAADisabled"
          value="0" />
        <combo_box.item
          label="FXAA"
          name="FXAA"
          value="1" />
        <combo_box.item
          label="SMAA"
          name="SMAA"
          value="2" />
    </combo_box>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="20"
    layout="topleft"
    left="30"
    name="antialiasing quality label"
    top_delta="20"
    width="130">
      Antialiasing Quality:
  </text>
  <combo_box
    control_name="RenderFSAASamples"
    height="20"
    initial_value="false"
    label="Antialiasing"
    layout="topleft"
    left_pad="40"
    name="fsaa quality"
    top_delta="0"
    width="90">
    <combo_box.item
      label="Low"
      name="Low"
      value="0" />
    <combo_box.item
      label="Medium"
      name="Medium"
      value="1" />
    <combo_box.item
      label="High"
      name="High"
      value="2" />
    <combo_box.item
      label="Ultra"
      name="Ultra"
      value="3" />
  </combo_box>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="MeshText"
    top_delta="16"
    left="10"
    width="128">
    Mesh
  </text>

  <slider
    control_name="RenderTerrainLODFactor"
    follows="topleft"
    height="16"
    increment="0.125"
    initial_value="160"
    label="Terrain Mesh Detail:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="1"
    max_val="2"
    name="TerrainMeshDetail"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="TerrainMeshDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="topleft"
    height="16"
    layout="topleft"
    name="TerrainMeshDetailText"
    text_readonly_color="LabelDisabledColor"
    top_delta="0"
    left_delta="304"
    width="65">
    Low
  </text>

  <slider
    control_name="RenderTreeLODFactor"
    follows="topleft"
    height="16"
    increment="0.125"
    initial_value="160"
    label="Trees:"
    label_width="185"
    layout="topleft"
    left="30"
    name="TreeMeshDetail"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="TreeMeshDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="TreeMeshDetailText"
    top_delta="0"
    left_delta="304"
    width="65">
    Low
  </text>

  <slider
    control_name="RenderVolumeLODFactor"
    follows="left|top"
    height="16"
    increment="0.125"
    initial_value="160"
    label="Objects:"
    label_width="185"
    layout="topleft"
    left="30"
    min_val="0"
    max_val="4"
    name="ObjectMeshDetail"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="ObjectMeshDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="ObjectMeshDetailText"
    top_delta="0"
    left_delta="304"
    width="65">
    Low
  </text>

  <slider
    control_name="RenderFlexTimeFactor"
    follows="left|top"
    height="16"
    initial_value="160"
    label="Flexiprims:"
    label_width="185"
    layout="topleft"
    left="30"
    name="FlexibleMeshDetail"
    show_text="false"
    top_delta="16"
    width="300">
    <slider.commit_callback
   function="Pref.UpdateSliderText"
      parameter="FlexibleMeshDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="FlexibleMeshDetailText"
    top_delta="0"
    left_delta="304"
    width="65">
    Low
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left_pad="10"
    name="antialiasing restart"
    top_delta="0"
    width="130">
     (requires restart)
  </text>
   <view_border
      bevel_style="in"
      height="377"
      layout="topleft"
      left="385"
      name="vert_border"
      top="16"      
      width="0"/>
  
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    name="ShadersText"
    top_delta="-10"
    left="400"
    width="128">
     Shaders
  </text>

  <check_box
    control_name="RenderTransparentWater"
    height="16"
    initial_value="true"
    label="Transparent Water"
    layout="topleft"
    left="420"
    name="TransparentWater"
    top_delta="18"
    width="300">
    <check_box.commit_callback
      function="Pref.RenderOptionUpdate" />
  </check_box>

  <slider
    control_name="WLSkyDetail"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="8"
    initial_value="160"
    label="Sky:"
    label_width="145"
    layout="topleft"
    left="420"
    min_val="16"
    max_val="128"
    name="SkyMeshDetail"
    show_text="false"
    top_delta="22"
    width="260">
    <slider.commit_callback
      function="Pref.UpdateSliderText"
      parameter="SkyMeshDetailText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left_delta="264"
    name="SkyMeshDetailText"
    text_readonly_color="LabelDisabledColor"
    top_delta="0"
    width="65">
       Low
  </text>

  <check_box
    control_name="RenderDeferredSSAO"
    height="16"
    initial_value="true"
    label="Screen Space Ambient Occlusion"
    layout="topleft"
    left="420"
    name="UseSSAO"
    top_delta="22"
    width="240">
    <check_box.commit_callback
      function="Pref.RenderOptionUpdate" />
  </check_box>

  <check_box
    control_name="RenderDepthOfField"
    height="16"
    initial_value="true"
    label="Depth of Field"
    layout="topleft"
    left="420"
    name="UseDoF"
    top_delta="20"
    width="240">
    <check_box.commit_callback
      function="Pref.RenderOptionUpdate" />
  </check_box>

    <check_box
      control_name="RenderDisableVintageMode"
      height="16"
      initial_value="false"
      label="HDR and Emissive"
      layout="topleft"
      left="420"
      name="VintageMode"
      top_delta="20"
      width="240">
        <check_box.commit_callback
          function="Pref.RenderOptionUpdate" />
    </check_box>
    
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left="420"
    name="RenderShadowDetailText"
    text_readonly_color="LabelDisabledColor"
    top_delta="22"
    width="128">
      Shadows:
  </text>
  <combo_box
   control_name="RenderShadowDetail"
   height="18"
   layout="topleft"
   left_delta="130"
   top_delta="0" 
   name="ShadowDetail"
   width="150">
     <combo_box.item
       label="None"
       name="0"
       value="0"/>
     <combo_box.item
       label="Sun/Moon"
       name="1"
       value="1"/>
     <combo_box.item
       label="Sun/Moon + Projectors"
       name="2"
       value="2"/>
  </combo_box>

  <check_box
    control_name="RenderScreenSpaceReflections"
    height="16"
    initial_value="true"
    label="Screen Space Reflections"
    layout="topleft"
    left="420"
    name="ScreenSpaceReflections"
    top_delta="24"
    width="240">
    <check_box.commit_callback
      function="Pref.RenderOptionUpdate" />
  </check_box>
  
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left="420"
    name="ReflectionDetailText"
    text_readonly_color="LabelDisabledColor"
    top_delta="22"
    width="128">
    Reflection Detail:
  </text>

  <combo_box
   control_name="RenderReflectionProbeDetail"
   height="18"
   layout="topleft"
   left_delta="130"
   top_delta="0"
   name="ReflectionDetail"
   width="150">
    <combo_box.item
      label="Static Only"
      name="0"
      value="0"/>
    <combo_box.item
      label="Static+Dynamic"
      name="1"
      value="1"/>
    <combo_box.item
      label="Realtime"
      name="2"
      value="2"/>
  </combo_box>

  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left="420"
    name="ReflectionProbeText"
    text_readonly_color="LabelDisabledColor"
    top_delta="22"
    width="128">
    Reflection Coverage:
  </text>

  <combo_box
   control_name="RenderReflectionProbeLevel"
   height="18"
   layout="topleft"
   left_delta="130"
   top_delta="0"
   name="ReflectionLevel"
   width="150">
    <combo_box.item
      label="None"
      name="0"
      value="0"/>
    <combo_box.item
      label="Manual only"
      name="1"
      value="1"/>
    <combo_box.item
      label="Manual + terrain"
      name="2"
      value="2"/>
    <combo_box.item
      label="Full scene"
      name="3"
      value="3"/>
  </combo_box>

    <text
      type="string"
      length="1"
      follows="left|top"
      height="16"
      layout="topleft"
      left="420"
      name="ReflectionProbeCount"
      text_readonly_color="LabelDisabledColor"
      top_delta="22"
      width="128">
        Max Reflection Probes:
    </text>

    <combo_box
     control_name="RenderReflectionProbeCount"
     height="18"
     layout="topleft"
     label="Max. Reflection Probes:"
     left_delta="130"
     top_delta="0"
     name="ProbeCount"
     width="150">
        <combo_box.item
          label="None"
          name="1"
          value="1"/>
        <combo_box.item
          label="Low"
          name="32"
          value="32"/>
        <combo_box.item
          label="Medium"
          name="64"
          value="64"/>
        <combo_box.item
          label="High"
          name="128"
          value="128"/>
        <combo_box.item
          label="Ultra"
          name="256"
          value="256"/>
    </combo_box>

  <slider
    control_name="RenderExposure"
    decimal_digits="1"
    follows="left|top"
    height="16"
    increment="0.1"
    initial_value="160"
    label="Exposure:"
    label_width="145"
    layout="topleft"
    left="420"
    min_val="0.5"
    max_val="4.0"
    name="RenderExposure"
    show_text="true"
    top_delta="24"
    width="260">
  </slider>

  <!-- Mirror settings. -->
  <check_box
    control_name="RenderMirrors"
    height="16"
    initial_value="false"
    label="Mirrors"
    layout="topleft"
    left="420"
    name="Mirrors"
    top_delta="22"
    width="240">
    <check_box.commit_callback
      function="Pref.RenderOptionUpdate" />
  </check_box>

  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left="420"
    name="MirrorResolutionText"
    text_readonly_color="LabelDisabledColor"
    top_delta="22"
    width="128">
    Mirror Resolution:
  </text>

  <combo_box
   control_name="RenderHeroProbeResolution"
   height="18"
   layout="topleft"
   left_delta="130"
   top_delta="0"
   name="MirrorResolution"
   width="150">
    <combo_box.item
      label="256"
      name="0"
      value="256"/>
    <combo_box.item
      label="512"
      name="1"
      value="512"/>
    <combo_box.item
      label="1024"
      name="2"
      value="1024"/>
    <combo_box.item
      label="2048"
      name="3"
      value="2048"/>
  </combo_box>

  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left="420"
    name="HeroProbeUpdateText"
    text_readonly_color="LabelDisabledColor"
    top_delta="22"
    width="128">
    Mirror Update Rate:
  </text>

  <combo_box
   control_name="RenderHeroProbeUpdateRate"
   height="18"
   layout="topleft"
   left_delta="130"
   top_delta="0"
   name="HeroProbeUpdateRate"
   width="150">
    <combo_box.item
      label="Low"
      name="6"
      value="6"/>
    <combo_box.item
      label="Medium"
      name="3"
      value="3"/>
    <combo_box.item
      label="High"
      name="1"
      value="2"/>
    <combo_box.item
      label="Ultra"
      name="0"
      value="1"/>
  </combo_box>
  <!-- End of mirror settings -->
  <!-- Sharpening Settings -->
  <slider
    control_name="RenderCASSharpness"
    decimal_digits="1"
    follows="left|top"
    height="16"
    increment="0.1"
    initial_value="160"
    label="Sharpening:"
    label_width="145"
    layout="topleft"
    left="420"
    min_val="0.0"
    max_val="1.0"
    name="RenderSharpness"
    show_text="true"
    top_delta="20"
    width="260">
  </slider>
  <!-- End of Sharpening Settings-->
  <!-- Tone Mapping Settings -->
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    left="420"
    name="TonemapTypeText"
    text_readonly_color="LabelDisabledColor"
    top_delta="25"
    width="128">
    Tone Mapper:
  </text>
  <combo_box
    control_name="RenderTonemapType"
    height="18"
    layout="topleft"
    left_delta="130"
    top_delta="0"
    name="TonemapType"
    width="150">
     <combo_box.item
       label="Khronos Neutral"
       name="0"
       value="0"/>
     <combo_box.item
       label="ACES"
       name="1"
       value="1"/>
  </combo_box>
  <slider
   control_name="RenderTonemapMix"
   decimal_digits="1"
   follows="left|top"
   height="16"
   increment="0.1"
   initial_value="1"
   label="Tone Mapping Mix:"
   tool_tip="Mix between linear and tone mapped colors"
   label_width="145"
   layout="topleft"
   left="420"
   min_val="0.0"
   max_val="1.0"
   name="TonemapMix"
   show_text="true"
   top_delta="20"
   width="260">
  </slider>
  <!-- End of Tone Mapping Settings-->
  <!-- End of Advanced Settings block -->
	<view_border
      bevel_style="in"
      height="0"
      layout="topleft"
      left="13"
      name="horiz_border"
      top="415"
      top_delta="5"
      width="774"/>
  <button
    follows="top|left"
    height="23"
    label="Reset to recommended settings"
    layout="topleft"
    left="20"
    name="Defaults"
    top_delta="7"
    width="210">
    <button.commit_callback
      function="Pref.HardwareDefaults" />
  </button>

  <button
    follows="right|bottom"
    height="23"
    label="OK"
    label_selected="OK"
    layout="topleft"
    right="-115"
    name="OK"
    top_delta="0"
    width="80">
      <button.commit_callback
        function="Pref.OK"
        parameter="closeadvanced" />
   </button>

   <button
    follows="right|bottom"
    height="23"
    label="Cancel"
    label_selected="Cancel"
    layout="topleft"
    left_pad="5"
    right="-20"
    name="Cancel"
    top_delta="0"
    width="80" >
      <button.commit_callback
        function="Pref.Cancel"
        parameter="closeadvanced" />
   </button>

<!-- These two check boxes are dummies and will never be displayed.  They are here so the control variables
are saved in a preset file. -->
  <check_box
    control_name="RenderAvatarMaxComplexity"
    visible="false"
    height="0"
    label="RenderAvatarMaxComplexity"
    layout="topleft"
    left="0"
    name="RenderAvatarMaxComplexity"
    top_delta="0"
    width="0">
  </check_box>

  <check_box
    control_name="RenderAvatarMaxNonImpostors"
    visible="false"
    height="0"
    label="RenderAvatarMaxNonImpostors"
    layout="topleft"
    left="0"
    name="RenderAvatarMaxNonImpostors"
    top_delta="0"
    width="0">
  </check_box>
</floater>
