Precomputed lighting for sloped surfaces + vectorization of rendering code