Hi Aras! Ignoring the pain of refactoring existing shaders: Would you recommend removing the doubled color calculation in particle shaders? I figured it's related to your atten*2 lighting discussion on the unity forums, but it still shows in builtin shaders. Thanks for your time!

John Sollows
Hmm, I thought we have removed all the "atten * 2" stuff from built-in shaders in Unity 5. Which particle shaders that do lighting still have it?
I think some others (that aren't lit) might do "color * 2" as a cheap way of allowing "overbrightenning" effect, where 50% gray color is neutral, and brighter than that allows for brighter particles than the actual texture. If you want to copy them and remove that to suit your needs -- sure, just do it.

View more

  • 59
  • 31

About Aras Pranckevičius:

Graphics programmer and code plumber at Unity

Kaunas, Lithuania

#graphics #programming