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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Can I modify lighting shader of forward path?

Discussion in 'Shaders' started by fullike, Mar 1, 2015.

  1. fullike

    fullike

    Joined:
    Nov 13, 2012
    Posts:
    17
    I know I can modify lighting shader of deferred path by replacing Internal-PrePassLighting.shader in built-in shaders. Is there a same way to modify forward path?
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
  3. fullike

    fullike

    Joined:
    Nov 13, 2012
    Posts:
    17
    Thanks jvo3dc.
    What I want to do is something like custom light type. So if I want to change the attenuation value passed to lighting function how can I do this?
     
  4. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    You can't do that in 4.x. I've looked at that myself before.

    I'm not yet sure what the new rendering path of 5.0 brings, but I fear that defining custom light types is not part of it.