to work on osx
add srand()
substitute uchar4 color with float3 color
pack radius into center
lerp colors
colorise surface
clean up
optimaise