PDA

View Full Version : Passing Variables "flots" from the fragment shader to the vertex shader



hamdi.rakkez
10-15-2015, 04:38 AM
Hi,

Is it possible to pass variables ''floats" from the fragment shader to the vertex shader ?

Thank you.

Alfonse Reinheart
10-15-2015, 05:45 AM
It's not possible to pass anything "up" the rendering pipeline (https://www.opengl.org/wiki/Rendering_Pipeline_Overview). How could it be? That part of the pipeline has finished; it can't start up again.

Now, it's possible for a fragment shader to write data to a buffer texture (https://www.opengl.org/wiki/Buffer_Texture), from which a later rendering operation reads. But that's two separate rendering operations.