Is it possible to re-generate fragments, or writing to more than one pixel, in the fragment shader? One application can be anti-aliasing.
Just MRT with gl_FragData[], nothing more.
But how do I specify the coordinates of the new fragment?
How do I re-direct the current fragment raster position?
You cannot.
Unfortunately! Well then this can be a good feature to consider int he next release of GL. Gonna be kick-ass!
It’s called “scatter-write”. Is inefficient.
Currently you can manually generate point-clouds of millions of points; generate them with a frag-shader and with a PBO represent them as a VBO to be drawn.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.