This project showcases several non-photorealistic rendering techniques meant to imitate various artistic and technical styles. Cel-shading, the Gooch method of technical shading, edge drawing and procedural and texture-based hatching are all shown. Cel shading is typically used to represent a cartoony style and is done by clamping values on shading into a small range. Gooch shading is used in technical illustration to make it easier to see back parts of objects that would ordinarly be shaded very darkly. It uses interpolation between a warm and cool value rather than dark and light. Both, but particularly Gooch shading are used in conjunction with silhouette/edge drawing. Hatching imitates drawing techniques to show light and shadow through overlapping lines.

All shading techniques were carried out in the fragment shader, apart from edge drawing which was done with a two-pass technique and partially carried out in the main loop and vertex shader as well. All the listed shading techniques are implemented, though texture-based hatching could use some work. There is also implementation for the user to change all the colors used in the simulation as well as to move the lights and move around the scene.

Artifacts:

Sources:

https://www.cs.utah.edu/~shirley/papers/gooch98.pdf

http://cgstarad.com/Docs/GSContours.pdf

http://hhoppe.com/hatching.pdf

http://www.lighthouse3d.com/tutorials/glsl-12-tutorial/toon-shader-version-ii/

http://sunandblackcat.com/tipFullView.php?l=eng&topicid=15