by jarrett · 12y ago · 0 comments
* I know that shaders aren't guaranteed to execute on the GPU, depending on the OpenGL implementation. But for simplicity let's just assume they do.
The more general answer to your question is that in fragment shaders, you can get "non-locality" via texture lookups inside the shader code.
So you define a way to encode arbitrary non-local data as texture data, correct? That is, you're hacking textures as a store for arbitrary data instead of the image data that textures were originally designed to store?