6. Toon-Shading

Figure 5. Realtime Procederal Universe

For some entertainment one of the moons is toon-shaded. This is a very simple shader, that uses flat colors depending on the lighting(as Phong). Black outlining is added afterwards (for a toony feeling). All fragments with a normal that stands (nearly) orthogonal to the viewing-vector are colored extremely dark(still depending on the angle). To avoid the black outlines to become thicker and thicker, the closer we come, we set the angle in which the fragments are 'blackened' depending on the distance to the viewer. So the angle becomes smaller, the closer you get to the object. This keeps the outlines small when near, but big enough, if far away

THE OUTLINING-SCALING HAS BEEN REMOVED DUE TO PERFORMANCE-PROBLEMS ON THE CIP-Computers