Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Virtual Production > Graphics Compositor > Lighting Not Effecting Layers

Discussion in 'Virtual Production' started by mindCreatesMeaning, Mar 20, 2024.

  1. mindCreatesMeaning

    mindCreatesMeaning

    Joined:
    Jan 14, 2021
    Posts:
    39
    Environment:
    Unity 2023.2.11f1 (Apple Silicon)
    Graphics Compositor

    Observation / Issue / Workflow Assistance Requested:

    I'm working with a CompositionGraph containing three layers.
    • Background Layer (Camera)
      • Culling Mask > Everything (minus midground and foreground layers)
    • Midground Layer (Live Action Video Plate)
      • Culling Mask > Nothing (except midground and light layers)
    • Foreground Layer (Camera)
      • Culling Mask > Nothing (except foreground and light layers)
    The Problem I'm facing is that my Scene > Directional Light is not effecting my final composite output.
    Directional Light does look correct within the Scene Window but not Composite Output.

    Insight & Assistance is requested and appreciated.
     
  2. PavlosM

    PavlosM

    Unity Technologies

    Joined:
    Oct 8, 2019
    Posts:
    31
    Hey! Lights have a layer mask, similar to other objects in Unity. Based on your description, it sounds that you have to adjust the layer of your light so it's included in the culling mask of the layers that you have created.

    If this does not solve your problem, then please provide us more information about your scene setup.

    One thing to keep in mind is that objects in your "foreground layer" will not automatically cast shadows in other layers. You can make this work but it requires some additional setup. If the issue that you are seeing is related to shadows, let us know and I can give you some hints on how to solve it.