Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

_ADDITIONAL_LIGHTS_VERTEX Keyword is always on for PBR Shader Graph shaders

Discussion in 'Universal Render Pipeline' started by raingame_, Jun 21, 2021.

  1. raingame_

    raingame_

    Joined:
    Jan 15, 2019
    Posts:
    28
    Why is that happening? https://prnt.sc/166a8i3
    I don't have any lights in my scene and the used shader is basically empty PBR Shader Graph shader. Even if I disable additional lights in URP asset this keyword is still on https://prnt.sc/166ajjh. What's logic behind it? With default Lit shader there is no any keyword enabled. Only with shader graph. If I put real AdditionalLight in scene like PointLight, then _ADDITIONAL_LIGHTS keyword is enabled as I expected.