Search Unity

ForwardAdd pass

Discussion in 'Shaders' started by echologin, Oct 9, 2017.

  1. echologin

    echologin

    Joined:
    Apr 11, 2010
    Posts:
    1,078
    Ok I'm trying to make one shader that does lit and unlit ( changed via options )

    is there anyway to keep a shader from calling the ForwardAdd pass if the shader is unlit when a pixel light is in range ?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,336
  3. echologin

    echologin

    Joined:
    Apr 11, 2010
    Posts:
    1,078

    I will try that ... that did not show up in my docs earlier today I must have been looking at old version

    thanks !