GLSL subroutine not being used
- by amoffat
I'm using a gaussian blur fragment shader. In it, I thought it would be concise to include 2 subroutines: one for selecting the horizontal texture coordinate offsets, and another for the vertical texture coordinate offsets. This way, I just have one gaussian blur shader to manage.
Here is the code for my shader. The {{NAME}} bits are template…