PDA

View Full Version : velocity shader


subbu
11-24-2013, 06:56 AM
Hi,

I need to have velocity vectors (optical flow) for every pixel on screen and between current frame and previous frame. I am trying write a shader to do the same. But I am not sure how to access the previous frame's information (do I need to save it to another variable ?). Please give me some info or example code to do this.

Thanks in advance,
Subbu