pass_template:
    samplerstates:
        samLinear:
            filter: MIN_MAG_MIP_LINEAR
            addressU: CLAMP
            addressV: CLAMP
        samLinearWrap:
            filter: MIN_MAG_MIP_LINEAR
            addressU: WRAP
            addressV: WRAP
    type: match-color-input
    constant-buffers:
        globalParams: {screenSize: SCREEN_SIZE, elapsedTime: ELAPSED_TIME, captureState: CAPTURE_STATE, tileUV: TILE_UV_RANGE}
        controlBuf: {g_sldASPX: aspectXSlider, g_sldASPY: aspectYSlider}

typical_slider:
      type: float
      minimum-value: 1.0
      maximum-value: 30.0
      default-value: 0.0
      ui-sticky-region: 0.01
      ui-value-unit: "Ratio"
      ui-value-min: 1
      ui-value-max: 30
      ui-value-step: 1
      ui-sticky-value: 15

user-constants:
    - name: aspectXSlider
      ui-label: "Horizontal Scale"
      ui-label-localized:
        cs-CZ: "Horizontální měřítko"
        da-DK: "Vandret skalering"
        de-DE: "Horizontale Skala"
        el-GR: "Οριζόντια κλίμακα"
        en-UK: "Horizontal Scale"
        es-ES: "Escala horizontal"
        es-MX: "Escala horizontal"
        fi-FI: "Vaakamittakaava"
        fr-FR: "Échelle horizontale"
        hu: "Vízszintes skála"
        it-IT: "Scala orizzontale"
        ja-JP: "水平スケール"
        ko-KR: "수평 스케일"
        nl-NL: "Horizontale schaal"
        nb-NO: "Horisontal skala"
        pl: "Skala pozioma"
        pt-PT: "Escala horizontal"
        pt-BR: "Escala horizontal"
        ru-RU: "Масштаб по горизонтали"
        sk-SK: "Horizontálna mierka"
        sl-SI: "Vodoravno raztezanje"
        sv-SE: "Horisontell skala"
        th-TH: "มาตราส่วนแนวนอน"
        tr-TR: "Yatay Ölçek"
        zh-CHS: "水平标度"
        zh-CHT: "水平縮放比例"
      default-value: 21.0
      ui-sticky-value: 21
      import: [typical_slider]
    - name: aspectYSlider
      ui-label: "Vertical Scale"
      ui-label-localized:
        cs-CZ: "Vertikální měřítko"
        da-DK: "Lodret skalering"
        de-DE: "Vertikale Skala"
        el-GR: "Κάθετη κλίμακα"
        en-UK: "Vertical Scale"
        es-ES: "Escala vertical"
        es-MX: "Escala vertical"
        fi-FI: "Pystymittakaava"
        fr-FR: "Échelle verticale"
        hu: "Függőleges skála"
        it-IT: "Scala verticale"
        ja-JP: "垂直スケール"
        ko-KR: "수직 스케일"
        nl-NL: "Verticale schaal"
        nb-NO: "Vertikal skala"
        pl: "Skala pionowa"
        pt-PT: "Escala vertical"
        pt-BR: "Escala vertical"
        ru-RU: "Масштаб по вертикали"
        sk-SK: "Vertikálna mierka"
        sl-SI: "Navpično raztezanje"
        sv-SE: "Vertikal skala"
        th-TH: "มาตราส่วนแนวตั้ง"
        tr-TR: "Düşey Ölçek"
        zh-CHS: "垂直标度"
        zh-CHT: "垂直縮放比例"
      default-value: 9.0
      ui-sticky-value: 9
      import: [typical_slider]

main:
    import: [pass_template]
    shader: PSMain@Letterbox.yfx
    textures:
        texColor:
            channel: PIPE_INPUTS_COLOR
