- Home /
Toon Shader with lighting
Hi, I have been trying to get a good effect for toon styled characters and objects in Unity. The default Unity toon shaders do not support lighting like from (directional lights, point lights, spotlights) and a few such as Unity Chan do support lighting but only from a directional light.
As I am not very good at shaders, this has been problematic for me. The effect I am wanting to achieve has the same look as the standard toon shaders but where it can also recieve lighting from point lights and other sources as well. Does anyone know how I can accomplish this? Is there a shader available or is there a good place for me to learn how to do this?
The reason is that in the game, there is active time of day where the world light may change from orange to white to dark blue for times of day and I want the toony objects to be affected by this. BUT, for areas like caves, I don't want the shader to be unlit so that way when you are walking underground with no torch (etc), you still appear as you would in full sunlight. The same goes for if you walk by a torch I want the character to look like he is passing a light source.
I think that maybe what I am looking for would be a variant of the standard unity shader but with cel shading so that the color transitions are more sharp. But most importantly, the character must be outlined and that outline should get smaller the farther away the object is from the rendering camera such as is done in the UnityChan shaders.
Any help would be greatly appreciated! If you know of a shader that does something like this, or you know a good place for me to figure out how to do it, I would be very appreciative. Thanks
Your answer
Follow this Question
Related Questions
How Do I Make The "Solar Outline" Effect? 0 Answers
Why is this outline diffuse shader making the scene darker than the regular diffuse shader? 0 Answers
Toon Shader using Surface Shader 0 Answers
Toon effect combined with vertex lighting 0 Answers
Toon Shader with Shadows, alpha, and outline? (Unity 3) 0 Answers