September 2018
Intermediate to advanced
472 pages
15h 36m
English
Transform feedback provides a way to capture the output of the vertex (or geometry) shader to a buffer for use in subsequent passes. Originally introduced into OpenGL with version 3.0, this feature is particularly well-suited for particle systems, because among other things, it enables us to do discrete simulations. We can update a particle's position within the vertex shader and render that updated position in a subsequent pass (or the same pass). Then the updated positions can be used in the same way as input to the next frame of animation.
In this example, we'll implement the same particle system from the previous recipe (Creating a particle fountain), this time making use of transform ...
Read now
Unlock full access