Search Unity

Baked GI Node ect.

Discussion in 'High Definition Render Pipeline' started by ViCoX, Apr 14, 2020.

  1. ViCoX

    ViCoX

    Joined:
    Nov 22, 2013
    Posts:
    37
    Hi,

    How can I access the baked lightmap data in HDRP? There is Baked GI node but it's not doing too much.

    Thanks,
    - J
     
  2. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi,

    Baked GI node is the way to go, It will sample lightprobe or lightmap depends on what the mesh renderer configure.
    We don't provide access to lightmap directly.
     
  3. ViCoX

    ViCoX

    Joined:
    Nov 22, 2013
    Posts:
    37
    Thanks Seb!
    Yeah the problem was that I used it with Unlit graph and it didn't seem to work. (I'm trying to multiply indirect shadows with shadow matte)

    With Lit Graph it seems to work correctly (There is no shadow matte in Lit Graph tho)
    - J
     
  4. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    ah yes it is expected. We will update the documentation to reflect this.
    Only Lit material (material with lighting, fabric etc...) can access lighting information (lightmap/lightprobe), unlit can't.
    And shadow matte indead only work with unlit, as those aren't lighting information, they are modulated shadow (shadow is expected to be abscence of light, so with unlit it is shadow matte).
     
  5. cubrman

    cubrman

    Joined:
    Jun 18, 2016
    Posts:
    412
    The documentation still DOES NOT reflect this. Thank God (@ViCoX) for this thread.