First (non-working) implementation of cpu-side rendering