I'm pretty sure the answer to this is basically, "No", but perhaps there is a way to do this.
Under iOS, I would like to be able to specify a fragment shader to composite together UIViews, rather than simply have them combine with alpha based blending.
The specific use case I have in mind is I want to have a foreground layer that is scrolling over two background layers: one a day-time image and the other a night-time image. The foreground view will control which of the two background views shows through by linearly blending between them. The two backgrounds will also be scrolling (more slowly than the foreground), giving a parallax effect.
In general, I am frustrated that the iPhone (and any other modern smart phone) has an awesomely powerful GPU chained up inside it, and all the UI asks of it, for the most part, is trivial blending. Wouldn't it be cool to be able to have UIView with a layer representing a surface normal so that as it is rotated, it gets correctly light source shaded? Wouldn't that be great?
Any thoughts? Thanks!