http://blenderartists.org/forum/showthread.php?389535-Light-shader-GLSL&p=3005199&viewfull=1#post3005199
looks like there is a example of what you seek in this thread
"
Hey, I add a few shader examples to the file: Light(1).blend
-reduce code for hemi light.
-lighting for all lightypes (use properties)
By the way will the lightype patch (with or without compatibility) find his way into official Blender in the future?
-different kinds of normalmapping like in Blender
-Vertex lighting (useful for things that don't need detailed lighting to get better performance)
-functions for all specular shading methods that are available in blender
And I make an example with lighting and a diffuse texture. I don't get it like in Blender maybe someone can help?
"
.blend inside thread