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

Lighting???

Discussion in 'General Graphics' started by EnsurdFrndship, Jan 26, 2015.

  1. EnsurdFrndship

    EnsurdFrndship

    Joined:
    Apr 17, 2010
    Posts:
    786
    Hello,
    I was wondering if there is a way to put a directional light inside of a building since the walls, floors and roofs cause shadows. I don't like adding point and spot lights because my floors are set up as squares that overlap each other, and the textures seem to flicker because of the z-buffering, but I notice when I use directional lights, my textures don't do that. Is there a way to use multiple directional lights (one inside the building and one outside) and have both lights render shadows? Thank you.

    Michael S. Lowe
     
  2. DanSuperGP

    DanSuperGP

    Joined:
    Apr 7, 2013
    Posts:
    408
    This doesn't really belong in the Game Design forums, it should be in the General Graphics forum probably.

    The simple answer is to use a single directional light, and then turn off Cast Shadows on the walls, floor, and roof that you don't want to cast shadows.
     
  3. EnsurdFrndship

    EnsurdFrndship

    Joined:
    Apr 17, 2010
    Posts:
    786
    Thank you. I put another question of this discussion in the General Graphics forum.