Search Unity

[Released] Lux Lit Particles

Discussion in 'Assets and Asset Store' started by larsbertram1, Jan 27, 2019.

  1. Jakub_Machowski

    Jakub_Machowski

    Joined:
    Mar 19, 2013
    Posts:
    647
    OK, thanks for that info.! If I may ask are there any performance benefits comparing to unity particle shader? Cause from screens it seems like the light is much more adequate than on unity shader
     
  2. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    it is pretty fast. that is all i can say.
    it offers unique features so any comparison is more or less worthless.
     
  3. gecko

    gecko

    Joined:
    Aug 10, 2006
    Posts:
    2,241
    Hey, I'm having a weird problem with Lux Lit Particles: We have a custom mudpot particle effect, but with default settings on the Lux Lit material, the particles fade out when near the underlying surface mesh. So we changed the Render Queue from Shader 3000 to Geometry 2000. This works on another computer but not on my computer (and I'm the one who does the game builds) -- for me, the particles have this shadow-grid on them, but the particle itself is not rendered. Any idea what's going on here? It's very odd as both computers have the current project synced up from github.

    upload_2022-8-12_11-4-0.png
     
  4. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    nope. unfortunately.
     
  5. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    Hi, is there a reason you haven't updated LWRP to URP?
    I grabbed this today hoping it might work but found that it doesn't.
     
  6. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    Just found your URP Essentials Pack which contains lit particles, so I've grabbed that as well. Consider the extra purchase a bonus for your hard work! :)
     
  7. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    thanks! but be aware: the lit particles do not play nicely with latest forward+ rendering :(
    nevertheless lux upr essentials should offer a lot of useful stuff.
     
  8. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    I'm using Differed, I mainly want it for the additional lit particle features.

    I know this is probably the wrong place but when I make a PC build I am seeing different particle lighting than when in the editor, any ideas?
     
  9. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    no, not really. can you post some screen shots?
     
  10. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    In the PC build the Lit particles are really dark for some reason, see attached image.
    I am Using 2021.3.22 f1, URP 12.1.10, Differed Rendering
    I only have a single URP Quality Profile that is used in the build.
    I thought maybe its falling back to a different shader?
    I turned Shader stripping off and it still happens.
     

    Attached Files:

  11. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    everything is darker in the build?!
     
  12. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    i did a quick test in 2021.3.21 - and URP strips pretty much everything. the built in lit shader does not even receive light.
    turning variant stripping off it gets lit but the particle shaders will not do normal mapping.
    commenting the #pragma shader_feature_local _NORMALMAP and using #define _NORMALMAP the tess shader shows normal mapping. tess however is too low (using 3 as in the editor).
    buggy shader variant stripping...
     
    sh0v0r likes this.
  13. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    What do you suggest I do, could maybe explain which file I can edit and what line number?

    I tried turning of Strip Unused Variants but saw no difference.

    I'm a bit of a noob when it comes to shaders.
     
  14. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    file: Lux URP Particles Simple Lit Tess.shader
    line 168: #pragma shader_feature_local _NORMALMAP --> #define _NORMALMAP
    this made normal maps to land in the build.

    i did not check the other shader_features tho. like _FLIPBOOKBLENDING_ON or _SOFTPARTICLES_ON.

    actually i would look for another version of Unity and URP: shader variant stripping not working properly is a no go.
     
  15. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    OK, what version would you recommend?
     
  16. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    oh, i haven't checked shader stripping in other versions... urp 14 brings forward+. and the corresponding LTS version should arrive soon. so i would give the latest 2022.2 a go.
     
  17. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    ahh ok, I just assumed you'd developed your URP based assets and tested them in a particular editor and URP version.

    It's a strange issue, I cannot find anyone else reporting the same problem, even though you confirmed it is stripping the wrong shaders out.

    I'll import the project into the latest 2022, the last time I tried this I had other performance issues with 2022 where it would drop frames significantly in full screen mode.

    I am using an LTS version already its shocking that Unity can drop the ball so often.
     
  18. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    it is.
     
  19. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    325
    I tried the latest 2022 and as expected it breaks lots of other things and performance is worse.
    Any chance we can look into elevating this as a bug submission and get them to fix it?
     
  20. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    you can simply file a bug report.
     
  21. Pourya-MDP

    Pourya-MDP

    Joined:
    May 18, 2017
    Posts:
    145
    hey @larsbertram1 i have a simple question , i want to know if its doable to make rain particles react to light using this asset!?
    something like this in 56:39
    as you can see the rain reacts to light like in real world!

     
  22. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,900
    i think so yes.
    who knows? might be refraction as well.
     
    Pourya-MDP likes this.
  23. JJunior

    JJunior

    Joined:
    May 22, 2019
    Posts:
    53
    Very nice shader but it does not work on VR single pass intanced...