<?xml version="1.0" ?>
<!DOCTYPE adsui SYSTEM "../../ui.dtd">
<adsui version="2.0">
  <PageInfo>
    <Title>
      Water 
    </Title>
  </PageInfo>
  <Fields>
    <StackPanel id="water_watergroup"
                label="Water"
                orientation="Vertical"
                expanded="true">
      
      <ChooseList id="water_type" label="Type"
                  tooltip="Selects the texture of the water (swimming pool, river, lake, ocean, etc.)">
        <Choice id="water_swimming_pool" label="Swimming Pool"/>
        <Choice id="water_reflecting_pool" label="Generic Reflecting Pool"/>
        <Choice id="water_river" label="Generic Stream/River"/>
        <Choice id="water_lake" label="Generic Pond/Lake"/>
        <Choice id="water_ocean" label="Generic Sea/Ocean"/>
      </ChooseList>
      
      <ChooseList id="water_tint_enable" label="Color"
                  tooltip="Adjusts the tint of the water (tropical, algae/green, murky/brown, etc.).">
        <Choice id="water_tropical" label="Tropical"/>
        <Choice id="water_algae" label="Algae/Green"/>
        <Choice id="water_murky" label="Murky/Brown"/>
        <Choice id="water_reflecting_pool" label="Generic Reflecting Pool"/>
        <Choice id="water_river" label="Generic Stream/River"/>
        <Choice id="water_lake" label="Generic Pond/Lake"/>
        <Choice id="water_ocean" label="Generic Sea/Ocean"/>
        <ChoiceDetail id="water_custom" label="Custom">
          <MappableColorByObject id="water_tint_color" label="Custom Color" coloronly="true"
                 tooltip="Sets a color via RGB value.">
            <BoolColorByObject id="water_color_by_object" />
          </MappableColorByObject>
        </ChoiceDetail>
        <Dependency id="water_color_dep" on="water_type" requires="water_swimming_pool|water_reflecting_pool" not="true" else="hidden"/>
      </ChooseList>
      
      
      <Float id="water_bump_amount"
             label="Wave Height"
             min="0.0" max="5.0"
             hiddenvalue="0.0"
             tooltip="Adjusts relative wave height of the water. Enter a value between 0 (no waves) and 5 (big waves).">
        <Dependency id="water_bump_dep"
                    on="water_type"
                    requires="water_reflecting_pool"
                    not="true"
                    else="hidden"/>
      </Float>
    </StackPanel>
    <StackPanel id="water_performance_tunning_group"
        label="Performance Tuning"
        orientation="Vertical"
        expanded="true">
      <Integer id="reflection_glossy_samples"
         label="Reflection Glossy Samples"
         tooltip="Defines the maximum number of samples (rays) that mental ray computes to create glossy reflections."
         min="0"
         max="128"
         forcenumeric="spinbox"/>
      <Integer id="refraction_glossy_samples"
         label="Refraction Glossy Samples"
         tooltip="Defines the maximum number of samples (rays) that mental ray computes to create glossy refractions."
         min="0"
         max="128"
         forcenumeric="spinbox"/>
      <Integer id="water_refl_depth"
         label="Reflection Max Trace Depth"
         tooltip="Number of times each ray is reflected. When set to zero, global render settings take precedence."
         min="0"
         max="20"
         forcenumeric="spinbox"/>
    </StackPanel>
    <StackPanel id="water_refr_depth"
       label="Override Refraction Depth"
       labelid="water_refr_depth_control_label"
       checkbox="true"
       checkonvalue="4"
       checkoffvalue="-1"
       orientation="Vertical">
      <Integer id="water_refr_depth"
         label="Refraction Max Trace Depth"
         tooltip="When checked, the material's refraction depth is controlled locally and an additional transparency ray will be casted when the limit is reached, limiting the 'dark edge' effect typically found on solid glass objects."
         min="-1"
         max="20"
         forcenumeric="spinbox">
      </Integer>
    </StackPanel>
  </Fields>
</adsui>
