PDA

View Full Version : cascade multi shader



dongdongmaomao
09-06-2016, 03:56 AM
How do we cascade multi shaders (vertex and fragment)? For example, I want to find an edge in an image using the line detection technology with hough transform. First, a frag shader is created to change a color image to a grey image. Next, a kernel filter is adopted in another fragment shader to find all the edges in the previous grey image. Finally, a hough transform technology is used in other shader files (maybe fragment shader, geometry shader, vertex shader) based on the result of the second step. Are there some related samples or documents? Thanks in advance.