The shader looks great in my test program.

Unfortunately in MM3D the character gets very dark when adding the shader to it.

Maybe I have to play around with the intensity values a bit? In MM3D we the sunlight is set to 0,0,0 maybe that's the reason.