Same concept as my hair shader. Here's something similar, not sure if it's right. If it doesn't work, then I'll post the actual code.
NOTE: For the FX file
Code:
technique twoside
{
pass p1
{
// Render back faces
cullmode = cw;
alphaBlendEnable = true;
alphaTestEnable = true;
zWriteEnable = true;
}
pass p2
{
// Render front faces
cullmode = ccw;
alphaBlendEnable = true;
alphaTestEnable = true;
zWriteEnable = true;
}
}