imagination XD

realizing dream

[Tutorial] Blob Shadow Unity Indie


You know that realtime shadow is just for Unity Pro. But you also can use Projector object to create semi realistic shadow (depends on how you draw the shadow).

  1. First what you need is shadow projection shader. You can download it here,
  2. And then open photoshop. Create some black and white shadow.
  3. Create new image with 256×256. Click Rectangular Marquee tool and set the feather to 30 / 15. And then draw it
  4. Press CTRL + Backspace to fill the selection. Make sure the color is white, black.
  5. Save it as .JPG
  6. You also need a falloff image.
  7. Create new image (photoshop) 256x*8. Choose the Gradient tool and then drag it from left side to right side (left side : black, right side : white). Save it as .JPG
  8. In Unity, create new material and then choose the shader to FX / Projector Multiply
  9. You also need to set the shadow image and the falloff image properties
  10. for shadow image, Set texture type to Advanced. Turn on the “Alpha from Grayscale”, and “Border Mip Maps”. Set the Mip Maps Filtering to Kaiser. And the final, set the Wrap Mode : Clamp
  11. Do the same for Falloff image.
  12. and then import shadow image to cookie (in shadow material), and falloff to falloff.
  13. Create new Projector object. Rotate it 90 in the X Axis.
  14. Create a new Layer named “NoShadow”. And then select to an object you want to ignore the layer. For Instance, blob shadow for player, set blob shadow as the child of Player, and then click player change the layer from Default to NoShadow.
  15. You also can use a script to lock the projector (for something like crate) by using private var awakeRot : Quaternion. At the Start function, write awakeRot = transform.rotation; and then at Update function, write transform.rotation = awakeRot;


Started making games since 13 year old. 3D CGI Weeaboo | VFX Otaku | Anime Researcher | Indie Game Dev | VR Chuunibyou

5 thoughts on “[Tutorial] Blob Shadow Unity Indie

  1. Very interesting information!Perfect just what I was looking for!

  2. You have mentioned very interesting details! ps decent internet site.

  3. Pingback: [Tutorial] Fake ‘baked’ shadow in Unity Indie | Imagination XD

  4. Hello, In my case I find its better to put compression to Automatic Truecolor otherwise I will have artifacts in the borders when projector does rotate.


Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s