Access to the vertex buffer (buffer array) in the fragment shader

Is it possible to access the vertex buffer in the fragment shader using sampler1D in Opengl 3.0>? I think I read about it in the past, but I can do nothing about it. I can display data in a texture, but that would not be very elegant code if a more explicit way is available.

+5
source share
1 answer

Yes, this is called Texture Buffer Object (TBOs), it is available as a Core OpenGL function in 3.3 (I think) or as an ARB extension, for more information check the extension specification:

http://www.opengl.org/registry/specs/ARB/texture_buffer_object.txt

+6

All Articles