You are on page 1of 3

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

Thanks for your interest in Colored Shadows !! Colored shadows allows you to tint the shadows in Unity.!

There are 2 kinds of shadows, the projected shadows and the diffuse shadows. Colored shadows lets you colorise them at will.! In the sample project included, there is a script attached in the Main Camera, called _SetColor. This is where you control the Colored shadows. ! You can set the tint of the shadows using the Color property. The Alpha channel blends between fully tinted shadows ( opacity = 0 ) and standard shadows ( opacity =1 ). ! The Diffuse Shadow slider similarly blends the diffuse shadows between fully tinted ( 0.5) and standard (0).!

The Do Update checkbox allows for manipulating the shadow tint when needed. If left unchecked, the shadows tint remains the same and no resources are consumed.!

! The Show GUI checkbox allows to edit shadow tint in game.! ! !

You can nd a demo web player and experiment with the parameters here :! https://dl.dropboxusercontent.com/u/31918098/coloredShadowsUnity/coloredShadows.html! You can nd more info about Unity shadows here http://docs.unity3d.com/Documentation/Manual/ Shadows.html!

! For best results keep the shadows Strength parameter at 0.5.! ! ! ! ! ! ! ! ! !

! !

To use the Colored Shadows in your project simply add the _SetColor in the Main Camera and replace the shaders of the shadow receivers with the ones included in the package. E.g, replace Diffuse with DiffuseSC, Bumped Diffuse with Bumped DiffuseSC e.t.c.! All standard Unity shaders that support shadows are included.! ! Bumped diffuse! Bumped Specular! Decal! Diffuse Detail! Diffuse! Mobile Bumped Diffuse ! Mobile Bumped Specular (1 Directional Light)! Mobile Bumped Specular! Mobile Diffuse! TerrainBump! Terrain plus Grass and Splats! Parallax Diffuse! Parallax Specular! Reective Bumped Diffuse! Reective Bumped Specular! Reective Diffuse! Reective Specular! Reective Parallax Diffuse! Reective Parallax Specular! Self-Illumin Bumped Diffuse! Self-Illumin Bumped Specular! Self-Illumin Diffuse! Self-Illumin Specular! Self-Illumin Parallax Diffuse! Self-Illumin Parallax Specular!

! If you wish to convert a custom shader, contact me at ippobour@gmail.com or at the forums. ! ! Limitations : Lightmaps and Deferred path are not supported, all shaders are compiled.! ! I hope that Colored Shadows will be useful in your projects !! !
-Ippokratis Bournellis.

You might also like