//  Material Include file.
//
//  This file was generated for POV-Ray V3.5 by
//  NOTE: Do *NOT* remove the comment lines containing '$MRY$'.
//        To make Moray not re-export the material, change
//        the '$MRY$' to '$MRX$'.
//


//
// ********  MATERIALS  *******
//









#declare T_dummy=texture{pigment{color rgb<1,0,0>} finish{ambient 1}}
#declare T_Atoll_sec=
 texture
      {      
         pigment
         {
            gradient z
            color_map
            {
               [ 0.0     rgbft <0.573864, 0.125, 0.0, 0.0, 0.0>*0 ]
               [ 0.2 rgbft <0.0, 0.143466, 0.573864, 0.0, 0.0> ]
               [ 0.5  rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
               [ 1.0     rgbft <1.0, 1.0, 0.85, 0.0, 0.0> ]
            }
            turbulence 0.04
            omega 0.8
            lambda 10.0
            ramp_wave
         } 
         normal {
    wrinkles 0.5       
   accuracy 0.005   
    scale 0.006      
  }
     
         finish
         {
            ambient 0
            diffuse 0.4
         }
      }
      
#declare T_Atoll_hum=texture {pigment {color rgb 1}

  finish {
    ambient 0          
    diffuse 0.3       
    brilliance 1.0       
  
    reflection {
      0.0                      
     0.7                      
    fresnel on 
             
    }
   conserve_energy            
    
  } 

} 
      
#declare Mat_Atoll = 
   material  // Mat_Atoll
   {

  texture{
//  T_Atoll_sec//jour
  
// nuit
  gradient z
   texture_map{
    [0.88,T_Atoll_sec]
   [0.882, T_Atoll_hum ]
[0.890, T_Atoll_hum finish{ambient 0 diffuse 0.44 reflection{0,0}}]
   [0.893,T_Atoll_sec]
   }
  
   }   
     
     
   }







#declare Mat_ciel = 
   material  // Mat_ciel
   {   
      texture
      {      
         pigment
         {
          
           color rgb <0.0, 0.480654, 0.936513>*0.7 //transmit 1
         }      
         finish
         {
            ambient .5
            diffuse 0.0
         }
      }   
      interior
      {
         media
         {
            scattering
            {
           // 4 ,  rgb <0.0012, 0.0012, 0.002>*1.5 //jour
              4 ,  rgb <0.001, 0.001, 0.002>*.3//nuit
            }
          /*
             scattering
            {
               2 ,  rgb <0.0015, 0.0012, 0.0012>*0.10
            }
            */
            density
            {
               gradient z
               color_map
               {
                  [ 0.0     rgbft <0.05, 0.05, 0.05, 0.0, 0.0> ]
                  [ 1.0     rgbft <0.001, 0.001, 0.001, 0.0, 0.0> ]
               }
            }
         }
      }
   }


#declare Mat_nuage_media = 
   material  // Mat_nuage_media
   {   
      texture
      {      
         pigment
         {
            color rgbt <1.0, 1.0, 1.0, 1.0>
         }
      }   
      interior
      {
         media
         { //intervals 10
            samples 10,30
            variance 1.0/1000.0
            ratio 0.5
            absorption rgb 0.0012//nuit
          //  absorption rgb 0.006//jour
            scattering
            { // 1 ,  rgb <0.002, 0.002, 0.002, >*2//jour
              
              1 ,  rgb <0.002, 0.002, 0.002, >*0.6 //nuit
              extinction 1.5
            }
            density
            {
               wrinkles
               color_map
               {
                  [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 0.60    rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
                  [ 0.75    rgbft <0.1, 0.1, 0.1, 0.0, 0.0> ]
                  [ 1.0     rgbft <0.1, 0.1, 0.1, 0.0, 0.0> ]
               }
               turbulence 0.8
               ramp_wave
               scale  0.5
            }
         }
      }
   }



//  $MRY$: 'M_fond'


#declare M_fond = 
   material  // M_fond
   {   
      texture
      {      
         pigment
         {
            color rgb <0.0, 0.0, 0.0>
         }      
         finish
         {
            ambient 0.00
            diffuse 0.007167
         }
      }
   }


//  $MRY$: 'Mat_nuages'







//  $MRY$: 'tronc'


#declare tronc = 
      texture
      {      
         pigment
         {
            gradient z
            color_map
            {
               [ 0.0     rgbft <0.810068, 0.739941, 0.585732, 0.0, 0.0> ]
               [ 1.0     rgbft <0.406433, 0.337632, 0.18634, 0.0, 0.0> ]
            }
            turbulence 0.2
            ramp_wave
            scale  <0.05, 0.05, 0.5>
         }
      }





//  $MRY$: 'M_Sable_volcan'


#declare M_Sable_volcan = 
   material  // M_Sable_volcan
   {   
      texture
      {      
         pigment
         {
            gradient z
            color_map
            {
               [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
               [ 0.067616  rgbft <1.0, 0.967427, 0.8958, 0.0, 0.0> ]
               [ 0.096085  rgbft <1.0, 0.991857, 0.97395, 0.0, 0.0> ]
               [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
            }
         }      
         finish
         {
            ambient 0
            diffuse 0.8345
         }      

      }
   }


//  $MRY$: 'Veget'



#declare M_Iso_Mer = 
   material  // M_Iso_Mer
   {   
      texture
      {      
         pigment
         {
            color rgbt <0.2, 0.22, 0.21, 1.0>
         }      
         finish
         {
            ambient 0.0
           // phong 1.0
          //  phong_size 100.0
            specular 1.5
            roughness 0.0001
            conserve_energy
            reflection
            {
               0.2 , 1.0
               fresnel  on
              // falloff  1.0
              // exponent 1.0
               metallic 0.0
            }
         }
      }   
      interior
      {
         ior 1.32
         caustics 1.0
         fade_color rgb<0,0.5,1>
         fade_distance 10.0
         fade_power 2.0
         media
         {
            absorption rgb <1.0, 0.2, 0.3>}
      }
   }


//  $MRY$: 'M_Iso_Volcan'


#declare M_Iso_Volcan = 
   material  // M_Iso_Volcan
   {   
      texture
      {      
         pigment
         {
            color rgb <0.3, 0.3, 0.3>*1
         }      
         finish
         {
            ambient 0
            diffuse 0.6
         }
      }
   }


//  $MRY$: 'M_ISO_foret'


#declare M_ISO_foret = 
   material  // M_ISO_foret
   {   
      texture
      {      
         pigment
         {
            color rgb <0.1, 0.5, 0.08>*0.5
         }      
         finish
         {
            ambient 0
         }
      }
   }


//  $MRY$: 'M_sable'


#declare M_sable = 
   material  // M_sable
   {   
      texture
      {      
         pigment
         {
            gradient z
            color_map
            {
               [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
               [ 0.316726  rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
               [ 1.0     rgbft <1.0, 1.0, 1.0, 0.0, 0.0> ]
            }
         }      
         finish
         {
            ambient 0.00
         }
      }
   }


//  $MRY$: 'Mat_nuage_media'




