// test materials for uv box mapping


#declare imgDiffuse = "uv.png"
#declare imgBump    = "uv_bump.png"

#declare M_uv =
material {
    texture {
       pigment { 
            image_map {
                png imgDiffuse     
                map_type 0
                interpolate 4 
                }
      }
     
    normal  {
        bump_map {
            png imgBump 
            map_type 0
            interpolate 4 
        } 
        bump_size 5
    }
    
    finish {
        phong .5
        phong_size 80
        ambient .2
    }
        
    }
    scale <5,5,1> 
    translate <0,0,0> 
}


#declare imgDiffuse = "wood_diffuse.png" 
#declare imgBump    = "wood_bump.png"

#declare M_wood =
material {
    texture {
       pigment { 
            image_map {
                png imgDiffuse     
                map_type 0
                interpolate 4 
                }
      }
     
    normal  {
        bump_map {
            png imgBump 
            map_type 0
            interpolate 4 
        } 
        bump_size .15
    }
    
    finish {
        phong .1
        phong_size 40
        ambient .2
    }
        
    }
    scale <10,10,1> 
    translate <0,0,0> 
}


#declare imgDiffuse = "stone_diffuse.png" 
#declare imgBump    = "stone_bump.png"
#declare M_stone =
material {
    texture {
       pigment { 
            image_map {
                png imgDiffuse     
                map_type 0
                interpolate 4 
                }
      }
     
    normal  {
        bump_map {
            png imgBump 
            map_type 0
            interpolate 4 
        } 
        bump_size 5
    }
    
    finish {
        phong .5
        phong_size 40
        ambient .2
    }
        
    }
    scale <30,30,1> 
    translate <0,-5,0> 
}