In what application do you want to render? As far I know in several applications the default materials already have a detail textures input, at least I remember seeing inputs in standard Unity material, Mamorset material and there is a detail texture material function in Unreals material editor too.