Silhouette is a raytracer that renders STL files written in C.
./bin/main fileName.stl > fileName.ppm
Basicly write your STL (Non Ascii) file as the first argument and forward the output into a ppm file.
camMatrix
variable is responsible for camera placement and direction. Depending on the size of the model, camera needs to be readjusted.
camMatrix = lookAt((V3f){100,100,150},(V3f){0,0,0});
// ^ Camera Origin, ^ Target
Colored based on the angle between the ray and the triangle normal -- An angle shader
Also angle shader but colored uniquely per axis
Rendered with an experimental depth shader that resets every x mm