After looking at the opengl vertex/fragment programs, they look like they should be doable, although the fragment program (pixel shader) might exceed the instruction count for directx, but I guess that would depend on which ps version you want (can) use.
Never argue with an idiot. They drag you down to their level then beat you with experience