Could someone help me withÃÂ the new HLSL effects in WPF? Basically I need an HLSL Glow effect, to replace the BitmapEffect one.
I could figure out by myself that the PaddingTop, PaddingLeft, etc. properties let you create effects, which "overflow" the Visual bounding box (BTW, why not a simple Padding property, as everywhere else in WPF?)
Creating a glow effect needs some blurring for the soft edges.ÃÂ ÃÂ But here I don't have a clue how to perform that efficiently and in a parameterized fashion.
I thought I would have a look at the two effects shipped with WPF: DropShadow and Blur. Both are doing exactly what I need, that is they have a blur built-in. Moreover they are very flexible and can be configured for radius, [box - gaussian], and [fast - quality]. But looking inside .NET I discovered that they don't seem to actually use a pixel shader as we are supposed to... They do some fancy calls to the MIL composition engine, which I don't understand.
I honestly hope we could build a Blur effect similar to the one shipped by MS. If they used some internals we don't have access to I would be very disappointed.
Can somebody here help me?
View Complete Post