Yes this is not a shader but Opengl code using register combiners i beleive... i'm not very familiar with OGL but you might be able to map this to D3D Fixed-Function commands.
However, for such effects you are normally encouraged to use pixel shaders...