Colored shadows WIP

Hi,
I am preparing a new asset, called Colored shadows.
It will offer the possibility to create tinted shadows.
1496802--85064--$Screen Shot 2014-02-02 at 18.35.06.png
[Edit]
Webplayer available at __https://dl.dropboxusercontent.com/u/31918098/coloredShadowsUnity/coloredShadows.html__
Manual available at Colored Shadows Manual | PDF
All standard Unity shaders that support shadows are included.
If you need to convert a custom shader contact me here or at ippobour at gmail dot com.
Limitations : Does not support lightmaps or deferred pass, all shaders are compiled.
Pending approval at asset store.

Kind regards,
-Ippokratis

3D or 2D?

It will be 3d :slight_smile:

I guess include the basics, unlit, lit diffuse, +specular, plus normal mapped. I guess working with terrains would be good for some people. So within the shader you take the shadow value and colorize it, on a per-object basis?

Diffuse, Specular, Bumped are done. Desktop and mobile.
Terrains are done.
Unlit is out by definition ( cannot receive light or shadows ), as well as trees.
Lightmaps are out at least for the moment.
I opted for a per object solution, it has an added bonus with light simulation - more on that as I explore it.
And a small pic:

Ok - mostly ready :slight_smile:
I have converted the following 25+ shaders to work with colored shadows :
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
Reflective Bumped Diffuse
Reflective Bumped Specular
Reflective Diffuse
Reflective Specular
Reflective Parallax Diffuse
Reflective Parallax Specular
Self-Illumin Bumped Diffuse
Self-Illumin Bumped Specular
Self-Illumin Diffuse
Self-Illumin Specular
Self-Illumin Parallax Diffuse
Self-Illumin Parallax Specular

Limitations : Deferred and lightmaps are not supported. All shaders are compiled.

WOW impressive looking forward to seeing it in the asset store !

Cool. You said it’s colored shadows but I only see grayish shadows in your picture? Or are you just going for subtlety?

Well I have been asking Unity for years to give us a shadow color option. Do you have a video/webplayer of your current solution? Also, why not make sure this works with “any” shader… as I am using Shader Forge?

trelobyte : Thanks for the kind words :slight_smile:

imaginaryhuman : I think the subtle approach is what more artists will use. Shadows are similar to lights. They can easily abused and the results are… “experimental”. On the other hand, if someone is a master in color and wishes a radical shadows color, it is possible via settings.

Thomas Pasieka : The only reason I created this asset is that I show you plus a few other artists asking for it :slight_smile:
I am working on a sample scene now and I am going to record the results on video and publish it along with a webplayer. If you check the list, every unity shader that supports shadows is converted. For custom shaders, clients can contact me.

I am working on a solution for the lightmaps and so far I have concluded that it is possible, but it needs too much work to be included in the first release. So it will happen in a update. Videos and webplayer will follow soon :slight_smile:

Hi,
I created a webplayer that demonstrates the use of colored shadows.

1504768--84970--$Screen Shot 2014-02-01 at 15.28.55.png

You can adjust the hue of the shadows, as well as how “colorised” the shadows and the diffuse self shadowing are.
I have a little more work to do on this asset, it will be submitted to Asset Store this week.

Looks cool! Subbed!

I second that!

Hi,
Thanks for the kind words !
You can check the manual here : Colored Shadows Manual | PDF
I have submitted the package to the Asset Store, it will be soon available.

Cool, web player shows it off much better, nice work!

This is great, but it would be absolutely brilliant if shadow assumed color from the light color, or from surface… I’m probably asking impossible tho…

smells like deep shadows technology and color bleeding from renderman …in realtime… i second the request dzodzu …could give ippokratis a few more headaches though…:slight_smile:

cool thats amazing !

Doesn’t the shadow color have to be determined by some other colored ambient light source? Like, a shadow means light is missing from one light source, and so if it has a color it’s because there’s colored light coming from somewhere else.

Hey, thanks for the kind words !

dzodzu : I think sun gives blueish shadows and neon yellowish. You can change the color of the shadows at real time as demonstrated by the web player, to adapt at different situations. You can also change the shadow per object if necessary, but I think it will end up a mess if you mix 'em up.

Trelobyte : There is a line between eye candy and ready for production shaders that I try not to cross. The vast majority of the shaders are shader model 2 aka fast. GI is cute but slow. If you look at comic books, they look great without using physically accurate shading. The webplayer is inspired by cheap SF covers :slight_smile:

Imaginary human : I have seen some horrible things happen from ambient lighting abuse. In any case, ambient lighting contributes in the color of the shadows in the lighting model implemented in Colored Shadows.

I have integrated colored shadows in the upcoming version of toon shader, along with some more interesting stuff ! Stay tuned, this February will be very interesting !