• Register
Post feature RSS Faked cell shading in Unity iPhone

Cell shading is nice. But if you are using Unity Engine for iPhone until now, it's not supported. For Alpha Wars: Orion we are doing it the "other way", not using a shader but cheating to get the same visual result.

Posted by on

There is a roundabout to get cell shading in Unity iPhone or any other 3D environment, without the need of using the real and useful and smart shader.
If we analise the main concept, to get cell shading you need:

- soft shadowing and a bit flat - undetailed textures
- a pen line (mainly black) surrounding the shape of the 3D model.

The first key point is easy to achieve: texture and light work to get the toonish look, not too dark shadows, but nice if there is a noticeable contrast between lighted and shadowed.

The line stuff, that may be harder to achieve, is "easy" if you get you 3D model, make a copy of it, scale it a bit and flip the normals. Then apply a black material on it, and you have your line.

Cell shading trick

The weak of working out cell shading this way is that you are doubling your vertex count, and possibly your drawcall count, so your iPhone performance may die if you are not really careful.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.