Decided to calculate gradient using compute shader. Studying how to do this. Saved planningahead.cpp, with the first ideas of how to edit the code and a link to a compute shader example.