I have a filter shader that is separable, and I’d like to break it into an H and V pass. Obviously, the first pass - let’s say the horizontal filtering needs to go into a texture to be used in the 2nd pass, then the 2nd pass uses the new texture.
My question is, do I draw the whole scene, or just another version of the same texture, at the filtered size?
I guess it has to change size - that’s the point of the filtering, and that implies possibly changing shape, so it would be the size and shape it will be in the final product. So should the product of the 1st pass look like that single texture, but shaped as it will be in the final product, or will/should the 1st pass be the complete scene? Does that cause alpha problems, or does the second pass just ignore depth and alpha?
It’s scaling, btw, so I’d have to do 16 fetches per fragment, versus doing 4 per fragment on the H pass, and 4 on the V pass.