I’m preparing a new project and when surveying the options I was wondering if such a thing as field lookup is possible on the GPU.
I was imagining some kind of agents based model where agents can be gently pushed by a field that they are helping to shape. For this to work on the GPU I’d need some way that the output of a fragment shader can be input to a vertex shader, ideally in the form of texture values at vertex locations.
Am I imagining a holy grail here ? I suppose this is not possible because I’d imagine it would have been all over the place ?
I would declare textures on the vertex shader in the case of a displacement map(correct me if I am wrong please!) but I am not sure if that is the best way to get an agent based model.
Otherwise, using texturing within the vertex shader is called ‘Vertex Texture Fetch’ http://developer.nvidia.com/object/using_vertex_textures.html