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_sldGamma: gammaSlider, g_sldExposure: exposureSlider, g_sldContrast: contrastSlider, g_sldVign: vignSlider, g_sldFilterStrength: filterSlider, g_sldScratchesStrength: scrSlider}

typical_slider:
      type: float
      minimum-value: 0.0
      maximum-value: 1.0
      default-value: 0.5
      ui-sticky-region: 0.01
      ui-value-unit: "%"
      ui-value-min: 0
      ui-value-max: 100
      ui-value-step: 1.01

user-constants:
    - name: gammaSlider
      ui-label: "Gamma"
      ui-label-localized:
        cs-CZ: "Gama"
        da-DK: "Gamma"
        de-DE: "Gamma"
        el-GR: "Γάμα"
        en-UK: "Gamma"
        es-ES: "Gamma"
        es-MX: "Gamma"
        fi-FI: "Gamma"
        fr-FR: "Gamma"
        hu: "Gamma"
        it-IT: "Gamma"
        ja-JP: "ガンマ"
        ko-KR: "감마"
        nl-NL: "Gamma"
        nb-NO: "Gamma"
        pl: "Gamma"
        pt-PT: "Gama"
        pt-BR: "Gama"
        ru-RU: "Гамма"
        sk-SK: "Gama"
        sl-SI: "Gama"
        sv-SE: "Gamma"
        th-TH: "แกมม่า"
        tr-TR: "Gama"
        zh-CHS: "灰度"
        zh-CHT: "色差補正"
      import: [typical_slider]
    - name: exposureSlider
      ui-label: "Exposure"
      ui-label-localized:
        cs-CZ: "Expozice"
        da-DK: "Eksponering"
        de-DE: "Belichtung"
        el-GR: "Έκθεση"
        en-UK: "Exposure"
        es-ES: "Exposición"
        es-MX: "Exposición"
        fi-FI: "Valotus"
        fr-FR: "Exposition"
        hu: "Megvilágítás"
        it-IT: "Esposizione"
        ja-JP: "露出"
        ko-KR: "노출"
        nl-NL: "Belichting"
        nb-NO: "Eksponering"
        pl: "Ekspozycja"
        pt-PT: "Exposição"
        pt-BR: "Exposição"
        ru-RU: "Экспозиция"
        sk-SK: "Expozícia"
        sl-SI: "Čas osvetlitve"
        sv-SE: "Exponering"
        th-TH: "การเปิดรับแสง"
        tr-TR: "Pozlama"
        zh-CHS: "曝光"
        zh-CHT: "曝光"
      ui-sticky-value: 1.0
      import: [typical_slider]
    - name: contrastSlider
      ui-label: "Contrast"
      ui-label-localized:
        cs-CZ: "Kontrast"
        da-DK: "Kontrast"
        de-DE: "Kontrast"
        el-GR: "Αντίθεση"
        en-UK: "Contrast"
        es-ES: "Contraste"
        es-MX: "Contraste"
        fi-FI: "Kontrasti"
        fr-FR: "Contraste"
        hu: "Kontraszt"
        it-IT: "Contrasto"
        ja-JP: "コントラスト"
        ko-KR: "대비"
        nl-NL: "Contrast"
        nb-NO: "Kontrast"
        pl: "Kontrast"
        pt-PT: "Contraste"
        pt-BR: "Contraste"
        ru-RU: "Контраст"
        sk-SK: "Kontrast"
        sl-SI: "Kontrast"
        sv-SE: "Kontrast"
        th-TH: "การตัดกันของสี"
        tr-TR: "Kontrast"
        zh-CHS: "对比度"
        zh-CHT: "對比"
      default-value: 2.0
      maximum-value: 4.0
      ui-sticky-value: 1.0
      import: [typical_slider]
    - name: vignSlider
      ui-label: "Vignette Amount"
      ui-label-localized:
        cs-CZ: "Počet vinět"
        da-DK: "Vignetmængde"
        de-DE: "Vignettierungsstärke"
        el-GR: "Ποσότητα βινιεταρίσματος"
        en-UK: "Vignette Amount"
        es-ES: "Cantidad de viñetas"
        es-MX: "Cantidad de viñetas"
        fi-FI: "Vinjettien määrä"
        fr-FR: "Intensité effet de vignette"
        hu: "Háttérbe olvadás mértéke"
        it-IT: "Intensità dell’effetto vignetta"
        ja-JP: "ビネットの量"
        ko-KR: "비네트 수"
        nl-NL: "Vignetteringsvolume"
        nb-NO: "Vignettantall"
        pl: "Intensywność winietowania"
        pt-PT: "Número de vinhetas"
        pt-BR: "Número de bordas"
        ru-RU: "Степень виньетирования"
        sk-SK: "Rozsah vinety"
        sl-SI: "Znesek vinjete"
        sv-SE: "Antal vinjetter"
        th-TH: "จำนวนขอบจาง"
        tr-TR: "Vinyet Miktarı"
        zh-CHS: "虚光量"
        zh-CHT: "暈影數量"
      ui-sticky-value: 1.0
      import: [typical_slider]
    - name: filterSlider
      ui-label: "Filter Strength"
      ui-label-localized:
        cs-CZ: "Síla filtru"
        da-DK: "Filterstyrke"
        de-DE: "Filterstärke"
        el-GR: "Ισχύς φίλτρου"
        en-UK: "Filter Strength"
        es-ES: "Intensidad de filtro"
        es-MX: "Intensidad del filtro"
        fi-FI: "Suodattimen vahvuus"
        fr-FR: "Intensité du filtre"
        hu: "Szűrőerősség"
        it-IT: "Intensità filtro"
        ja-JP: "フィルター強度"
        ko-KR: "필터 강도"
        nl-NL: "Filtersterkte"
        nb-NO: "Filterstyrke"
        pl: "Stopień filtra"
        pt-PT: "Força do filtro"
        pt-BR: "Intensidade do filtro"
        ru-RU: "Степень фильтрации"
        sk-SK: "Sila filtra"
        sl-SI: "Moč filtra"
        sv-SE: "Filterstyrka"
        th-TH: "ความเข้มของฟิลเตอร์"
        tr-TR: "Filtre Gücü"
        zh-CHS: "滤镜强度"
        zh-CHT: "篩選強度"
      ui-sticky-value: 1.0
      default-value: 1.0
      import: [typical_slider]
    - name: scrSlider
      ui-label: "Film Dirt Strength"
      ui-label-localized:
        cs-CZ: "Velikost filmového šumu"
        da-DK: "Styrke på filmgryn"
        de-DE: "Stärke Schmutzfilmeffekt"
        el-GR: "Ισχύς βρομιάς μεμβράνης"
        en-UK: "Film Dirt Strength"
        es-ES: "Intensidad de suciedad de la película"
        es-MX: "Intensidad de la suciedad de la película"
        fi-FI: "Filmin likavahvuus"
        fr-FR: "Intensité de l’effet vieux film"
        hu: "Filmszennyeződés erőssége"
        it-IT: "Intensità dell’effetto pellicola rovinata"
        ja-JP: "フィルムの汚れ強度"
        ko-KR: "필름 먼지 강도"
        nl-NL: "Filmvuilsterkte"
        nb-NO: "Styrke for filmsmuss"
        pl: "Stopień zabrudzenia filmu"
        pt-PT: "Intensidade de imperfeições do filme"
        pt-BR: "Intensidade de granulação do filme"
        ru-RU: "Количество грязи на пленке"
        sk-SK: "Sila vrstvy nečistôt"
        sl-SI: "Moč smeti na filmu"
        sv-SE: "Filmsmutseffekt"
        th-TH: "ความเข้มของฝุ่นบนฟิล์ม"
        tr-TR: "Film Kiri Gücü"
        zh-CHS: "膜防污强度"
        zh-CHT: "影片斑紋強度"
      ui-sticky-value: 1.0
      default-value: 1.0
      import: [typical_slider]

main:
    import: [pass_template]
    shader: PSMain@OldFilm.yfx
    textures:
        texColor:
            channel: PIPE_INPUTS_COLOR
        texScratches:
            filename: scratches.jpg
