pass_template:
    samplerstates:
        SamplerLinear:
            filter: MIN_MAG_MIP_LINEAR
            addressU: CLAMP
            addressV: CLAMP
    type: RGBA8_uint
    constant-buffers:
        globalParams: {screenSize: SCREEN_SIZE, captureState: CAPTURE_STATE, tileUV: TILE_UV_RANGE}
        controlBuf: {g_sldAxis: axisSlider, g_sldBlur : blurSlider, g_sldCurve : curveSlider} 

typical_slider1:
      type: float
      minimum-value: -1.0
      maximum-value: 1.0
      default-value: 0.0
      ui-sticky-region: 0.01
      ui-value-unit: "%"
      ui-value-min: -100
      ui-value-max: 100
      ui-value-step: 5

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

user-constants:
    - name: axisSlider 
      ui-label: "Axis"
      ui-label-localized:
          ru-RU:  "Ось"
          fr-FR:  "Axe"
          it-IT:  "Asse"
          de-DE:  "Achse"
          es-ES:  "Eje"
          es-MX:  "Eje"
          zh-CHS: "轴"
          zh-CHT: "軸"
          ja-JP:  "軸"
          cs-CZ:  "Osa"
          da-DK:  "Akse"
          el-GR:  "Άξονας"
          en-UK:  "Axis"
          fi-FI:  "Akseli"
          hu: "Tengely"
          ko-KR:  "축"
          nl-NL:  "As"
          nb-NO:  "Akse"
          pl: "Oś"
          pt-PT:  "Eixo"
          pt-BR:  "Eixo"
          sl-SI:  "Os"
          sk-SK:  "Os"
          sv-SE:  "Axel"
          th-TH:  "แกน"
          tr-TR:  "Eksen"
      ui-value-min: 0
      ui-value-max: 180.0
      minimum-value: 0.0
      maximum-value: 180.0
      default-value: 0.0
      ui-sticky-value: 0.0
      import: [typical_slider1]
    - name: blurSlider 
      ui-label: "Blur Size"
      ui-label-localized:
          ru-RU:  "Площадь размытия"
          fr-FR:  "Taille du flou"
          it-IT:  "Dimensioni sfocatura"
          de-DE:  "Unschärfegröße"
          es-ES:  "Tamaño de desenfoque"
          es-MX:  "Tamaño de desenfoque"
          zh-CHS: "模糊大小"
          zh-CHT: "模糊尺寸"
          ja-JP:  "ぼかし サイズ"
          cs-CZ:  "Velikost rozostření"
          da-DK:  "Sløringsstørrelse"
          el-GR:  "Μέγεθος θολώματος"
          en-UK:  "Blur size"
          fi-FI:  "Sumennuksen koko"
          hu: "Homályosság mérete"
          ko-KR:  "블러 크기"
          nl-NL:  "Vervagingsgrootte"
          nb-NO:  "Uskarphetstørrelse"
          pl: "Rozmiar rozmycia"
          pt-PT:  "Tamanho da desfocagem"
          pt-BR:  "Tamanho do desfoque"
          sl-SI:  "Obseg zameglitve"
          sk-SK:  "Veľkosť rozostrenia"
          sv-SE:  "Storlek på oskärpa"
          th-TH:  "ขนาดความพร่ามัว"
          tr-TR:  "Bulanıklaştırma boyutu"
      default-value: 15.0
      ui-sticky-value: 0.0
      maximum-value: 30.0
      import: [typical_slider2]      
    - name: curveSlider 
      ui-label: "Blur Curve"
      ui-label-localized:
          ru-RU:  "Кривая размытия"
          fr-FR:  "Courbe de flou"
          it-IT:  "Curva sfocatura"
          de-DE:  "Unschärfekurve"
          es-ES:  "Curva de desenfoque"
          es-MX:  "Curva de desenfoque"
          zh-CHS: "模糊曲线"
          zh-CHT: "模糊曲線"
          ja-JP:  "ぼかし カーブ"
          cs-CZ:  "Křivka rozostření"
          da-DK:  "Sløringskurve"
          el-GR:  "Καμπύλη θολώματος"
          en-UK:  "Blur curve"
          fi-FI:  "Sumennuskäyrä"
          hu: "Homályossági görbe"
          ko-KR:  "블러 곡선"
          nl-NL:  "Vervagingsboog"
          nb-NO:  "Uskarphetskurve"
          pl: "Krzywa rozmycia"
          pt-PT:  "Curva de desfocagem"
          pt-BR:  "Curva de desfoque"
          sl-SI:  "Krivulja zameglitve"
          sk-SK:  "Krivka rozostrenia"
          sv-SE:  "Effektkurva för oskärpa"
          th-TH:  "เส้นโค้งพร่ามัว"
          tr-TR:  "Bulanıklaştırma eğrisi"
      minimum-value: 1.0
      default-value: 2.0
      maximum-value: 10.0
      ui-sticky-value: 0.0
      import: [typical_slider2]   

blur1:
    import: [pass_template]
    shader: PS_GaussianA@TiltShift.yfx
    textures:
        texOriginalColor:
            channel: PIPE_INPUTS_COLOR

main:
    import: [pass_template]
    shader: PS_GaussianB@TiltShift.yfx
    textures:
        texBlurred:
            import: [blur1]
