Shadow matte shader for Unity
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets Fixed multiple light type support. Dec 25, 2017
ProjectSettings Initial commit. Jun 19, 2015
.gitignore Initial commit. Jun 19, 2015
README.md Change license to public domain Jul 26, 2018

README.md

ShadowDrawer

ShadowDrawer is a custom shader for Unity, which draws regions of shadows with a given color.

Screenshot

System Requirements

  • Unity 5.1 or later versions.

Limitations

  • Works only on Forward rendering path.
  • Conflicts with skyboxes. Use a solid color or a screen-sized quad for a background.

Usage

Create a material and change shader to Custom/ShadowDrawer. You can specify a color (rgb) and opacity (a) of shadows with the Shadow Color property.

Property

Set this material to objects that receives shadows. Besides that, you should turn off the Cast Shadows property on these objects.

CastShadows

This is not mandatory but gives proper results in most cases.

License

Public domain