Ask a questionAsk a question
 

AnswerHow to write a Bevel Effect in HLSL?

  • Tuesday, August 12, 2008 6:09 PMJoel_F Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
     
    I wonder if anyone's got some smart ideas (or links with information) about how to write a BevelEffect in HLSL (WPF 3.5 SP1), similar to the old BevelBitmapEffect in WPF.

    I know how to create a custom effect, but I have no idea about to write the HLSL code in order to get the bevel "look" for any type of UIElement, e.g. Rectangle, Ellipse, Polyline, Image, etc.

    I wonder why a hardware rendered bevel effect isn't provided when there is a replacement for the old drop shadow bitmap effect.

Answers

All Replies