ShaderMaterial
is really meant for raw shader code and is only a thin layer above such code. If you want to handle lights in your material, maybe you can try to create a node material in the NME?
It does not work for me and I get this error in the browser console: