Damatha Studios is an indie developer company for iPhone and iPod Touch. We work with Unity engine.

Post feature Report 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

Your comment will be anonymous unless you join the community. Or sign in with your social account: