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, depthAvailable: BUFREADY_DEPTH}
        controlBuf: {g_maskID: idSlider, g_sldHue: hueSlider, g_sldDIST: distSlider, g_sldINV: invSlider}

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

typical_slider2:
      type: float
      minimum-value: 0.0
      maximum-value: 2.0
      default-value: 0
      ui-sticky-region: 0.01
      ui-value-unit: "#"
      ui-value-min: 0
      ui-value-max: 2
      ui-value-step: 1

boolean_slider:
      type: bool

user-constants:
    - name: distSlider
      ui-label: "Focus Depth"
      ui-label-localized:
        cs-CZ: "Hloubka ostrosti"
        da-DK: "Fokusdybde"
        de-DE: "Fokustiefe"
        el-GR: "Βάθος εστίασης"
        en-UK: "Focus Depth"
        es-ES: "Profundidad de enfoque"
        es-MX: "Profundidad de foco"
        fi-FI: "Tarkennuksen syvyys"
        fr-FR: "Profondeur de mise au point"
        hu: "Fókuszmélység"
        it-IT: "Profondità focalizzazione"
        ja-JP: "フォーカス深度"
        ko-KR: "초점 깊이"
        nl-NL: "Scherptediepte"
        nb-NO: "Fokuser dybde"
        pl: "Głębia ostrości"
        pt-PT: "Profundidade de focagem"
        pt-BR: "Profundidade de foco"
        ru-RU: "Глубина фокуса"
        sk-SK: "Hĺbka zaostrenia"
        sl-SI: "Globina gorišča"
        sv-SE: "Fokusdjup"
        th-TH: "โฟกัสของความลึก"
        tr-TR: "Odak Derinliği"
        zh-CHS: "焦深"
        zh-CHT: "焦點深度"
      default-value: 0.5
      import: [typical_slider]
    - name: hueSlider
      ui-label: "Background Color"
      ui-label-localized:
        cs-CZ: "Barva pozadí"
        da-DK: "Baggrundsfarve"
        de-DE: "Hintergrundfarbe"
        el-GR: "Χρώμα φόντου"
        en-UK: "Background Colour"
        es-ES: "Color de fondo"
        es-MX: "Color de fondo"
        fi-FI: "Taustaväri"
        fr-FR: "Couleur d’arrière-plan"
        hu: "Háttérszín"
        it-IT: "Colore sfondo"
        ja-JP: "背景色"
        ko-KR: "배경색"
        nl-NL: "Achtergrondkleur"
        nb-NO: "Bakgrunnsfarge"
        pl: "Kolor tła"
        pt-PT: "Cor do padrão de fundo"
        pt-BR: "Cor de fundo"
        ru-RU: "Цвет фона"
        sk-SK: "Farba pozadia"
        sl-SI: "Barva ozadja"
        sv-SE: "Bakgrundsfärg"
        th-TH: "สีพื้นหลัง"
        tr-TR: "Arka Plan Rengi"
        zh-CHS: "背景颜色"
        zh-CHT: "背景顏色"
      default-value: 0.0
      import: [typical_slider]
    - name: idSlider
      ui-label: "Select Background"
      ui-label-localized:
        cs-CZ: "Vybrat pozadí"
        da-DK: "Vælg baggrund"
        de-DE: "Hintergrund auswählen"
        el-GR: "Επιλογή φόντου"
        en-UK: "Select Background"
        es-ES: "Seleccionar fondo"
        es-MX: "Seleccionar fondo"
        fi-FI: "Valitse tausta"
        fr-FR: "Sélectionner l’arrière-plan"
        hu: "Háttér kiválasztása"
        it-IT: "Seleziona sfondo"
        ja-JP: "背景を選択"
        ko-KR: "배경 선택"
        nl-NL: "Achtergrond selecteren"
        nb-NO: "Velg bakgrunn"
        pl: "Wybierz tło"
        pt-PT: "Selecionar padrão de fundo"
        pt-BR: "Selecionar fundo"
        ru-RU: "Выбрать фон"
        sk-SK: "Vybrať pozadie"
        sl-SI: "Izberi ozadje"
        sv-SE: "Välj bakgrund"
        th-TH: "เลือกพื้นหลัง"
        tr-TR: "Arka Plan Seç"
        zh-CHS: "选择背景"
        zh-CHT: "選取背景"
      default-value: 0.0
      import: [typical_slider2]
    - name: invSlider
      ui-label: "Invert Depth"
      ui-label-localized:
        cs-CZ: "Převrátit hloubku"
        da-DK: "Invertér dybde"
        de-DE: "Tiefe umkehren"
        el-GR: "Αναστροφή βάθους"
        en-UK: "Invert Depth"
        es-ES: "Invertir profundidad"
        es-MX: "Invertir profundidad"
        fi-FI: "Käännä syvyys"
        fr-FR: "Inverser la profondeur"
        hu: "Mélység megfordítása"
        it-IT: "Inverti profondità"
        ja-JP: "深度を反転"
        ko-KR: "깊이 반전"
        nl-NL: "Diepte omkeren"
        nb-NO: "Omvend dybde"
        pl: "Odwróć głębię"
        pt-PT: "Inverter profundidade"
        pt-BR: "Inverter profundidade"
        ru-RU: "Инвертировать глубину"
        sk-SK: "Invertovať hĺbku"
        sl-SI: "Obrni globino"
        sv-SE: "Inverterat djup"
        th-TH: "กลับความลึก"
        tr-TR: "Derinliği Tersine Çevir"
        zh-CHS: "反转深度"
        zh-CHT: "反轉深度"
      import: [boolean_slider]
      
main:
    import: [pass_template]
    shader: PSMain@GreenScreen.yfx
    textures:
        texColor:
            channel: PIPE_INPUTS_COLOR
        texDepth:
            channel: PIPE_INPUTS_DEPTH    
        texOv01:
            filename: GreenScreenBG01.jpg
            excludeHash: Yes
        texOv02:
            filename: GreenScreenBG02.jpg
            excludeHash: Yes
         
