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_sldIntensity: intensitySlider} 

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: 10

user-constants:
    - name: intensitySlider 
      ui-hint: "Use this to set intensity, 0% to 100%"
      ui-label: "Intensity"
      ui-label-localized:
          ru-RU: "Интенсивность"
          fr-FR: "Intensité"
          it-IT: "Intensità"
          de-DE: "Intensität"
          es-ES: "Intensidad"
          es-MX: "Intensidad"
          zh-CHS: "强度"
          zh-CHT: "強度"
          ja-JP: "彩度"
          cs-CZ: "Intenzita"
          da-DK: "Intensitet"
          el-GR: "Ένταση"
          en-UK: "Intensity"
          fi-FI: "Intensiteetti"
          hu: "Intenzitás"
          ko-KR: "강도"
          nl-NL: "Intensiteit"
          nb-NO: "Intensitet"
          pl: "Intensywność"
          pt-PT: "Intensidade"
          pt-BR: "Intensidade"
          sl-SI: "Intenzivnost"
          sk-SK: "Intenzita"
          sv-SE: "Intensitet"
          th-TH: "ความเข้ม"
          tr-TR: "Yoğunluk"
      default-value: 1.0
      ui-sticky-value: 1.0
      import: [typical_slider]
        
main:
    import: [pass_template]
    shader: PSMain@retro.yfx
    textures:
        txDiffuse:
            channel: PIPE_INPUTS_COLOR
        txBlur:
            import: [blur]
        txNoise:
            filename: chunkyGrain.bmp

blur_horizontal:
    import: [pass_template]
    shader: PSBlurHorizontal@retro.yfx
    textures:
        txDiffuse:
            channel: PIPE_INPUTS_COLOR

blur:
    import: [pass_template]
    shader: PSBlurVertical@retro.yfx
    textures:
        txBlur:
            import: [blur_horizontal]