Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How can I apply an HDR Color to a sprite?

Discussion in 'General Graphics' started by srylain, May 30, 2017.

  1. srylain

    srylain

    Joined:
    Sep 5, 2013
    Posts:
    159
    I have a single sprite that I'm using multiple times with different colors to differentiate them, and those colors need to be a bit brighter. I have the exact color values I need them to be (some of them are over 1), but since Unity will clamp them to 1 they can't render right.

    I'm not exactly sure on where to start with this, although it seems that using HDR colors is what I might need since I need color values over 1. I'm just using the SpriteRenderer for the sprites.
     
    stroibot likes this.
  2. stroibot

    stroibot

    Joined:
    Feb 15, 2017
    Posts:
    90
    Also want to know if this is possible
     
  3. Yamin-Nather

    Yamin-Nather

    Joined:
    Dec 31, 2014
    Posts:
    5
    You can create a custom 2D sprite shader.
    Its pretty easy to do with shader graph.

    If you are going for a bloom effect, create a new float property named something like emission intensity and multiply that with the color value you get from the sprite renderer.

    Downside of this is u have to have a separate material for each object.
     
    QuantumSno likes this.