Search Unity

Question Shader Graph is not effected by Baked Lighting

Discussion in 'Shader Graph' started by LegacySystem, Mar 14, 2023.

  1. LegacySystem

    LegacySystem

    Joined:
    Jan 28, 2021
    Posts:
    52
    Hi,

    (I originally posted on here. But it seems to be wrong place so here i am :) )

    I am using custom shader with shader graph on unity 2021.3.20 . We have one indoor scene and thought it would be logical to use baked ligthining. But The moment i tried all the custom shaders become black. When I changed to URP Lit they looked as they should. I found "Baked GI" node but couldn't figure out how to use it correctly. Just connecting to Emission is just looks wrong becuse My custom look just replaced by GI. When I multply with base color that it looks fakes that just not like the URP lit. What is the correct way to use Baked GI node? There is nothing on internet or in documention or any of the forums.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    You indeed need to use Baked GI in order to use baked lighting.
    If you only use baked, I suggest to use the Baked Lit shader from URP. Otherwise you can actually just pop the Baked GI into the base color for it to show up.
    I think you either need to add or multiply your base texture with the baked GI node for it to show both
     
    Kondziu2504 likes this.