Screenshot of the iPhone sample app for the gloss caustic shader
In September 2008, Matt Gallagher published Drawing gloss gradients in
CoreGraphics, a very nice piece of code “that will draw a ‘gloss’
gradient in a single statement. All colors in the gradient are calculated
from the single color parameter.”