Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Shadow volumes toolkit

Discussion in 'Editor & General Support' started by ruslite, Jul 15, 2014.

  1. ruslite

    ruslite

    Joined:
    May 25, 2014
    Posts:
    61
    How to remove the blackout on the object, but the object to accept a shadow? 412.jpg
     
  2. Project-Mysh

    Project-Mysh

    Joined:
    Nov 3, 2013
    Posts:
    223
    You can use multiple cameras to selectively shadow the scene.
    Render all the static geometry and shadows using the first camera, then the dynamic game objects or objects that you dont want to self-shadowing using the second camera (which doesn't clear the display buffer). This way, only the static geometry will receive shadows and there will be no self-shadowing on dynamic objects.
     
  3. ruslite

    ruslite

    Joined:
    May 25, 2014
    Posts:
    61
    But I need to get shade from other objects (dynamic). 412.jpg