Aug 12, 2008

New Properties in ShaderEffect Class

Posted by rravuri

With .NET 3.5 RTM release today, I see that there are following new properties added to the ShaderEffect class.

for setting the register index that contains the size of the image to which the effect is being applied to. documentation on web is complete with examples on this.

  • int DdxUvDdyUvRegisterIndex

For specifying the boundaries of the effect, this can be used to create glow like effects when so that the platform knows that the effect can determine output color outside the bounds of the UIElement. No Samples in the documentation.

  • double PaddingBottom
  • double PaddingLeft
  • double PaddingRight
  • double PaddingTop
  • ShaderRenderMode property on PixelShader

I shall be adding support for these in the ShaderPad shortly.