is this crazy.... pseudo-Multipass GLSL with histogram op?

gtoledo3's picture

What I did for this was to use the Gooch type shader as a histogram for a Vertex shader...

The pixel size of the render with the Gooch GLSL in it is 1000x1000... if you leave the coordinates at 0x0, you get undesirable color fluctuations. It is also interesting to change just one of the coordinates, which increases or decreases the apparent "sheen"...

The actual result looks more like a vertex with cartoon shading, than it looking very "gooch" like... could be some of my settings.

Hopefully this will be of use to people experimenting with GLSL, and also note that pretty much anything could be used for the histogram.

You can setup more chains of histogram operations like this, essentially repeating the pattern, but this is a basic example.