How to make shader with detail mapping

I’m want to make a shader with a detail map. What are some good resources to look at to lear how to do this?

Best resource is nvidia shader tutorial/shader library ,unity shaderlab documents and some free time to learn how to write cg shaders.
After that, you will find that its extremely simple to write your shader.

Thanks, will do the nvidia tutorials.