Search Unity

Question Shader with both forwardbase/forwardadd and vertex LightMode

Discussion in 'Shaders' started by ewoudwerf, Feb 27, 2023.

  1. ewoudwerf

    ewoudwerf

    Joined:
    Mar 19, 2016
    Posts:
    17
    Hi all,
    To say I am working on a game with odd lighting would be an understatement.
    Basically I want to have both "LightMode" = "ForwardBase" and "LightMode" = "Vertex" on separate passes inside one subshader.
    But when I do that the pass with the vertex lightmode becomes invisible, is there a way to make this work, or is it simply impossible?

    I have included a simple shader, that should draw the mesh twice on top of each other, one in vertex and the other in forwardbase, to showcase the issue
     

    Attached Files: