#declare C_galvanize1 =     color rgb <0.90, 0.90, 0.95> ; 


#declare C_map_galvanize = 
color_map {
    [0.0        C_galvanize1]
    [0.1        C_galvanize2 * 1.5]
    [0.3        C_galvanize2 * .9] 
    [0.55       C_galvanize1 * 1.5]
    [0.85       C_galvanize1 * 1.5]
    [0.9        C_galvanize2 * 2]
    [1.000      C_galvanize1]
}
 
 
#declare F_metal_galvanize  =
finish {  
    conserve_energy 
    brilliance 5
    ambient .10
    brilliance 5
    diffuse 1.1 
    phong 2    
    phong_size 40
    specular 2 
    roughness .01
} 
 
//--- galvanize
#declare sz = .1;   
#declare turb = 1.1; 
#declare bump = .3; 

#declare M_galvanize =
material {
    texture { 
        pigment { 
            spotted 
            color_map {C_map_galvanize} 
            turbulence turb
            scale sz
            } 
    
        finish{F_metal_galvanize}
        
        normal {
             crackle 
             turbulence turb 
             bump_size bump
             scale sz*2
         }   
     }
     scale <20,20,20>
}
