Shader request/learning experience

Hello everyone! After watching a video of one of my favorite songs I was inspired to make a game with the same visual style. I used the lighted toon shader with no outline and got a pretty similar effect. Although it wasn’t quite right. What I want is each poly on a model only has 2 possible shades. 1. Black and 2. A color of my choice (white, red, whatever). So the area’s that are touched by a light source are the color of my choice and the areas that are in the dark are black. I’m not sure how to do this but I would appreciate any help so I can learn. Thanks!

Here is the video of the style that I’m looking for:
http://www.youtube.com/watch?v=ZNeXVSt8E80(good song too)

This wouldn’t be a pro only shader would it?

You can actually do this with the colour correction image effect - you just set the ramp texture to half black and half white.

However, you are right, image effects rely on render textures and so they are a Pro-only feature.

Outside of pro, you could do this if you’re willing to dive into Cg programming a bit.

Basically, in the fragment program, you calculate the diffuse lighting component (which will be from 0 to 1), and use that as a lookup in a ramp texture (which can be only two colors for your particular case). Each object can then have a different ramp, too.

Thanks for the replies!

@Jormungandr - I slightly understand what you mean but I have no experience in any shaders or Cg programming. So a little pseudo code or a template would be greatly appreciated! Thanks!

For now I’m going to look up some tutorials though.

EDIT: I just thought I let you know that I just accomplished the effect that I was looking for using the too Toon Lighted shader and as the sphere map I used a white square on a black background. Works exactly as I wanted! So you can consider this closed! Thanks!

I don’t know if this will help you but here are some interesting tutorials about shaders. Though they were written for another game engine (not Unity) I believe they contain a lot of valuable information about shaders and you can learn a lot of things about shaders from them. Take a look at these free tutorials : http://www.liman3d.com/tutorials.html