Search Unity

Custom Pass Lit

Discussion in 'High Definition Render Pipeline' started by OutieLander, Nov 15, 2020.

  1. OutieLander

    OutieLander

    Joined:
    Apr 29, 2019
    Posts:
    6
    Right now, I'm trying to create a custom pass shader that will emulate PS1 styled vertex snapping. I've gotten it working, however the default custom pass generated code is set for an unlit material. In the documentation, it seems to imply that a lit shader is possible depending on the pass's injection point:

    Note that Lit Shaders aren't supported on every injection point as they require the lighting data to be ready.

    With where the custom pass is, I should be able to access the lighting data, but I can find no information on how to do so online. Is there something already available that I can use, or will I have to try and jury-rig it?
     
    Delphic_ likes this.
  2. Delphic_

    Delphic_

    Joined:
    Apr 23, 2018
    Posts:
    39
    Hi did you find anything?