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

How to get dark edges/outlines found in many 2.5d games

Discussion in 'General Graphics' started by Yamoc4, Mar 11, 2015.

  1. Yamoc4


    Jul 26, 2013
    I'm trying to get the dark edge effect seen in these examples where the ground just fades to black or objects with their back towards the camera have the black outline.

    My current solution is to use a directional light and just point it directly at the camera but it's difficult to get it looking right. I also tried to make a custom shader with a mask that darkens out areas. I'm not exactly getting the outcome that I hoped for. I figured I might as well ask here since it seems to be a pretty common in games and someone might know a better solution. Any help would be greatly appreciated!