Re: [Algorithms] Blurring in HLSL
Brought to you by:
vexxed72
|
From: Steve L. <sm...@go...> - 2009-06-16 20:54:49
|
> Hi All, > > Thanks for all the help you people have given me in the past. > > A question about blurring. > I want to do a soft blur in HLSL. Preferably in one-pass. > I've read lots of stuff but I want to know if anyone has managed to > come > up with a solution that works in one-pass and achieves a soft blur, AND > is fast. > > Any help much appreciated. > > Cheers > Zafar Qamar Its generally quicker to do a two-pass Gaussian blur (the Gaussian kernel is separable so you can reduce the number of texture samples from N^2 to 2*N by doing two passes, one horizontal and one vertical. I believe this also keeps it on topic since this is an algorithmic optimisation ;) Thanks, Steve. |