It's not perfect - there are some rendering issues associated with z-index clipping, but it does a decent job. Written to learn some 3d shading math.
Run with uv, ala:
git clone [email protected]:zparmley/BasicStlViewer.git
cd BasicStlViewer
uv run -m stlviewer