Mighty Duck Toon Shader

the next thing i worked on is the Toon shading for the game, i have done some experiments into shader programming before this is the first time i wrote it for use in a game.

this is the outline pass that uses the technique that expands the mesh culling the front and then applying a color, this method is the simplest to implement but it has it draw backs.

when applied to certain objects can result in artifacts and broken outline depending on camera angle and distance. however for our game that isn’t really an issue the camera is far back enough that it won’t be a problem and the camera is always in a fixed position.

this is the toon pass where the objects are rendered with specular, ambient and rim lighting added to it to achieve the final result

Leave a comment