Better Tubular
v1.0.0 - Tubular!
A high-performance CPU software renderer written from scratch in C. Extrudes millions of smooth, colourful tubes along procedurally-transformed Bezier curves with zero stored meshes.
Pipeline highlights:
- Bezier extrusion - de Casteljau evaluation with stable reference frames
- Multithreaded rendering - pthreads job dispatch, shadow pass + main pass
- Frustum culling - AABB clip space testing, distance based LOD
- Gouraud shading - per vertex lighting interpolated across scanlines
- Shadow maps - configurable resolution, light space depth test with bias
- SSAA - configurable internal rendering resolution with box filter downsampling
- ACES tone mapping - optional filmic highlight roll off
- Depth of field - pre blurred image pyramid with focal plane control
- Bloom - separable Gaussian glow on bright areas
- Exponential fog, background fill, vignette
- PNG & PPM output - zero external dependencies
- Dynamic thread count control
Performance: renders 2 million tubes with full post processing at 4K internal resolution on consumer hardware.
Build: standard C99 + pthreads, Makefile included.


