Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

HDRP Lens Flares

Discussion in 'Graphics Experimental Previews' started by witson, Apr 30, 2019.

  1. witson

    witson

    Joined:
    Feb 17, 2015
    Posts:
    10
    Greetings. I need a lens flare effect when using HDRP. In the "The Hereric" demo, this effect was (seen in the screenshot). At the moment, this is an experimental feature? I can not find anywhere. Are there any analogues how to make this effect?
     

    Attached Files:

    AntonioModer likes this.
  2. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    AntonioModer likes this.
  3. witson

    witson

    Joined:
    Feb 17, 2015
    Posts:
    10
    Oh, thank you, will try it
     
  4. witson

    witson

    Joined:
    Feb 17, 2015
    Posts:
    10
    This turned out to be exactly what I needed, thank you very much! Unfortunately, this effect stopped working when moving to the 2019.1 version of the Unity. Is there any quick way to fix the error in the shader?
     

    Attached Files:

    • lens.JPG
      lens.JPG
      File size:
      31 KB
      Views:
      1,842
  5. Onigiri

    Onigiri

    Joined:
    Aug 10, 2014
    Posts:
    484
    I dont think there is quick fix. Unity PP got totally changed and migrated to the volume system in 2019.1 so you need to adapt lens flares as well.
     
  6. Jao_Preto

    Jao_Preto

    Joined:
    Apr 11, 2019
    Posts:
    2
    the worst game engine ever...
     
    AshwinTheGammer likes this.
  7. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,355
    I think you can use any transparent base shader and adapt the vertex for it, i used the same for convert for my new HDRP water - clouds system (Unity 2019.3.f1).


     
    Lex4art likes this.
  8. witson

    witson

    Joined:
    Feb 17, 2015
    Posts:
    10
    Hi, thanks to everyone, the problem was solved long ago in 19 with the Fontainbleau demo update.
     
  9. shank1993

    shank1993

    Joined:
    Dec 31, 2012
    Posts:
    5
    AntonioModer likes this.
  10. YellowCode

    YellowCode

    Joined:
    Nov 23, 2015
    Posts:
    4
  11. zeropointblack

    zeropointblack

    Joined:
    Jun 8, 2020
    Posts:
    197
    yeah i know you love pushing what "this guy is totally giving away for free! ENJOY!" with the same post on every website including reddit, but there are no lens flares in there. thanks anyway.
     
    the_mr_matt and Orion_Reed like this.