Search Unity

Faking shadows on semi-transparent particles

Discussion in 'Shaders' started by SrBilyon, Jun 5, 2012.

  1. SrBilyon

    SrBilyon

    Joined:
    Jul 13, 2010
    Posts:
    291
    I'm using Edelwiess' Cloud system which renders particle cloud masses. The clouds currently do not support shadows or projectors because they are semi-transparent, so I was wondering if anyone knows a way i can make fake shadows that are casted by the clouds and/or receive shadows from other objects (specifically the player)?


    His system is using both custom shaders and Shuriken to generate cloud masses on polygons I believe.

    Here is a snapshot of clouds in my game:

     
    Last edited: Jun 5, 2012
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I'd say a top-down render of the cloud map then use a projector to project that top down texture onto the level is the only way to have proper cloud shadows.
     
  3. SrBilyon

    SrBilyon

    Joined:
    Jul 13, 2010
    Posts:
    291
    Ah, so basically, just project a render of the cloud using a projector to create a shadow. Smart Idea. Though, I'm hoping that I can find a way to project a shadow someway onto the clouds...
     
    Last edited: Jun 5, 2012