pass_template:
    samplerstates:
        samLinear:
            filter: MIN_MAG_MIP_LINEAR
            addressU: CLAMP
            addressV: CLAMP
    type: match-color-input
    constant-buffers:
        globalParams: {screenSize: SCREEN_SIZE, captureState: CAPTURE_STATE, tileUV: TILE_UV_RANGE}
        controlBuf: { g_sldBlueReduction: bluereductionSlider}

typical_slider:
      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: 1.01

user-constants:
    - name: bluereductionSlider
      ui-label: "Intensity"
      ui-label-localized:
        cs-CZ: "Intenzita"
        da-DK: "Intensitet"
        de-DE: "Intensität"
        el-GR: "Ένταση"
        en-UK: "Intensity"
        es-ES: "Intensidad"
        es-MX: "Intensidad"
        fi-FI: "Voimakkuus"
        fr-FR: "Intensité"
        hu: "Intenzitás"
        it-IT: "Intensità"
        ja-JP: "明度"
        ko-KR: "강도"
        nl-NL: "Intensiteit"
        nb-NO: "Intensitet"
        pl: "Intensywność"
        pt-PT: "Intensidade"
        pt-BR: "Intensidade"
        ru-RU: "Насыщенность"
        sk-SK: "Intenzita"
        sl-SI: "Intenzivnost"
        sv-SE: "Intensitet"
        th-TH: "ความเข้ม"
        tr-TR: "Yoğunluk"
        zh-CHS: "强度"
        zh-CHT: "強度"

      default-value: 0.3
      ui-sticky-value: 0.0
      import: [typical_slider]

main:
    import: [pass_template]
    shader: PS_Nightlight@NightMode.yfx
    textures:
        texColor:
            channel: PIPE_INPUTS_COLOR
