simplified shader and offloaded to cpu