On the shader side it actually isn´t a problem at all. As you just have to pass it from the vertex to the pixelshader and use it there. The as I think also not so hard part, is to feed the vertexshader with those information as some extra vertexdata. You could do it as color or another texcoord or whatever. The maybe harder part is, to get those information, as you would have to use a file format supporting vertexcolors or however you want to call it.