just replace your "bake color" component with "bake material". everything else should remain the same. If it doesn't work, post your file and maybe someone can help.
if you look in my definition, you'll see that the curves above pass through horizontal 'rings' generated from the isocurves of the original lofted surface.... these would correspond roughly to your fence 'stakes' and you can pipe that geometry with…
Just for fun, I decided to take a few hours on a friday afternoon and try to model the French Pavilion, just spotted on the blogs....
anyone want to try another?