#declare sw_tuba=light_source
{
        <0, 0, 0>
        color Flesh
        //area_light <  10.00,  10.00,  0.00>   <  0.00,  0.00,  10.00> 10.00, 10.00 
//        adaptive 1 jitter 
//        looks_like { tuba_zarowy }
//        fade_distance 130 
//        fade_power 1
        
        area_light <1, 0, 0>, <0, 1, 0>, 5, 5
//        adaptive 1
        jitter
        fade_distance 70
        fade_power 1
        looks_like { tuba_zarowy }
        
}
sky_sphere {
  
          pigment {
            gradient y
            color_map {
              [0.0 rgb <0.6,0.7,1.0>]
              [0.7 rgb <0.0,0.1,0.8>]
            }
          }
}
// radiosity (global illumination) settings


#switch(_swiatlo_)
#case (1)
        global_settings {
          assumed_gamma 1.0
        }
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, 1>  
          translate <-2000, 1700, 360>
          
        }
        
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, 1>  
          translate < 00, 1200, 1000>
        }
#break
#case (2)
        global_settings {
                radiosity {
                        brightness 2.2
                        count 300
                        error_bound 0.15
                        gray_threshold 0.0
                        low_error_factor 0.2
                        minimum_reuse 0.015
                        nearest_count 10
                        recursion_limit 5
                        #if (version>3.1)
                                adc_bailout 0.01
                                max_sample -1.0
                                media off
                                normal off
                                always_sample 1
                                
                                pretrace_start 0.08
                                pretrace_end 0.01
                        #end
                }
        
        }
#break
#case (3)


        light_source { sw_tuba translate <-1000,250,40-15> }
        light_source { sw_tuba translate <-1000,250,640-15> }
        light_source { sw_tuba translate <-1000,250,1240-15> }
        light_source { sw_tuba translate <-1000,250,1840-15> }
                                                        
        light_source { sw_tuba rotate y*180  translate <1000,250,40+15> }
        light_source { sw_tuba rotate y*180  translate <1000,250,640+15> }
        light_source { sw_tuba rotate y*180  translate <1000,250,1240+15> }
        light_source { sw_tuba rotate y*180  translate <1000,250,1840+15> }  
#break
#case (4)
       #declare sw_glowne=union{
        //translate <-16.5,-7,-15>
        //translate <50,-90,0>
                #declare ile=0;
                #while(ile<10)
                        light_source { sw_tuba  translate <50-16.5,-90-7,0-15> rotate y*(ile*36) }
                        #declare ile=ile+1;
                #end
                #declare ile=0;
                #while(ile<15)
                        light_source { sw_tuba  translate <60-16.5,-10-7,0-15> rotate y*(ile*24) }
                        #declare ile=ile+1;
                #end        
                #declare ile=0;
                #while(ile<20)
                        light_source { sw_tuba  translate <75-16.5,-50-7,0-15> rotate y*(ile*18) }
                        #declare ile=ile+1;
                #end
        }
        object { sw_glowne translate <-360, 600, 1840>}
        object { sw_glowne translate <-360, 600, 40>}
        object { sw_glowne translate <-360, 600, 900>}
        object { sw_glowne translate <300, 600, 1840>}
        object { sw_glowne translate <300, 600, 40>}
        object { sw_glowne translate <300, 600, 900>}        
#break
#case (5)
		  /*
        global_settings {
          radiosity {
            pretrace_start 0.08           // start pretrace at this size
            pretrace_end   0.04           // end pretrace at this size
            count 300                      // higher -> higher quality (1..1600) [35]  było 300
            nearest_count 10               // higher -> higher quality (1..10) [5] było 10
            error_bound 1.8               // higher -> smoother, less accurate [1.8]
            recursion_limit 3             // how much interreflections are calculated (1..5+) [3]
            low_error_factor .5           // reduce error_bound during last pretrace step
            gray_threshold 0.0            // increase for weakening colors (0..1) [0]
            minimum_reuse 0.015           // reuse of old radiosity samples [0.015]
            brightness 2                  // brightness of radiosity effects (0..1) [1]
        
            adc_bailout 0.01/2
            //normal on                   // take surface normals into account [off]
            //media on                    // take media into account [off]
            //save_file "file_name"       // save radiosity data
            //load_file "file_name"       // load saved radiosity data
            //always_sample off           // turn sampling in final trace off [on]
            //max_sample 1.0              // maximum brightness of samples
          }
        }
			*/

        light_source { sw_tuba translate <-1000,250,40-15> }
        light_source { sw_tuba translate <-1000,250,640-15> }
        light_source { sw_tuba translate <-1000,250,1240-15> }
        light_source { sw_tuba translate <-1000,250,1840-15> }
                                                        
        light_source { sw_tuba rotate y*180  translate <1000,250,40+15> }
        light_source { sw_tuba rotate y*180  translate <1000,250,640+15> }
        light_source { sw_tuba rotate y*180  translate <1000,250,1240+15> }
        light_source { sw_tuba rotate y*180  translate <1000,250,1840+15> }  
       #declare sw_glowne=union{
        //translate <-16.5,-7,-15>
        //translate <50,-90,0>
                #declare ile=0;
                #while(ile<10)
                        light_source { sw_tuba  translate <50-16.5,-90-7,0-15> rotate y*(ile*36) }
                        #declare ile=ile+1;
                #end
                #declare ile=0;
                #while(ile<15)
                        light_source { sw_tuba  translate <60-16.5,-10-7,0-15> rotate y*(ile*24) }
                        #declare ile=ile+1;
                #end        
                #declare ile=0;
                #while(ile<20)
                        light_source { sw_tuba  translate <75-16.5,-50-7,0-15> rotate y*(ile*18) }
                        #declare ile=ile+1;
                #end
        }
        object { sw_glowne translate <-360, 600, 1840>}
        object { sw_glowne translate <-360, 600, 40>}
        object { sw_glowne translate <-360, 600, 900>}
        object { sw_glowne translate <300, 600, 1840>}
        object { sw_glowne translate <300, 600, 40>}
        object { sw_glowne translate <300, 600, 900>}        
#break

#case (6)
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, .9>  
          translate <-2000, 1700, 360>
         
          
        }
        global_settings {
                radiosity {
                        brightness 2.0
                        count 100
                        error_bound 0.15
                        gray_threshold 0.0
                        low_error_factor 0.2
                        minimum_reuse 0.015
                        nearest_count 10
                        recursion_limit 5
                        #if (version>3.1)
                                adc_bailout 0.01
                                max_sample 0.5
                                media off
                                normal off
                                always_sample 1
                                
                                pretrace_start 0.08
                                pretrace_end 0.01
                        #end
                }

        
        }
#break
#case(7)
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, .9>  
          translate <-2000, 1700, 360>
         
          
        }
        light_source{
                <0, 300, 2900>
                color rgb <0.835294117647059,0.247058823529412,0.141176470588235>
                area_light <  7.00,  7.00,  0.00>   <  0.00,  0.00,  7.00> 7.00, 7.00 
                adaptive 1 jitter 
                fade_distance 500 
                fade_power 10
        }
        // radiosity (global illumination) settings
        global_settings {
          radiosity {
            pretrace_start 0.08           // start pretrace at this size
            pretrace_end   0.04           // end pretrace at this size
            count 300                      // higher -> higher quality (1..1600) [35]
            nearest_count 10               // higher -> higher quality (1..10) [5]
            error_bound 1.8               // higher -> smoother, less accurate [1.8]
            recursion_limit 3             // how much interreflections are calculated (1..5+) [3]
            low_error_factor .5           // reduce error_bound during last pretrace step
            gray_threshold 0.0            // increase for weakening colors (0..1) [0]
            minimum_reuse 0.015           // reuse of old radiosity samples [0.015]
            brightness 2                  // brightness of radiosity effects (0..1) [1]
        
            adc_bailout 0.01/2
            //normal on                   // take surface normals into account [off]
            //media on                    // take media into account [off]
            //save_file "file_name"       // save radiosity data
            //load_file "file_name"       // load saved radiosity data
            //always_sample off           // turn sampling in final trace off [on]
            //max_sample 1.0              // maximum brightness of samples
          }
        }


#break
#case(8)
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, .9>  
          translate <-2000, 1700, 360>
         
          
        }
        light_source{
                <0, 300, 2800>
                color rgb <0.835294117647059,0.247058823529412,0.141176470588235>
                area_light <  7.00,  7.00,  0.00>   <  0.00,  0.00,  7.00> 7.00, 7.00 
                adaptive 1 jitter 
                fade_distance 500 
                fade_power 10
        }
        // radiosity (global illumination) settings
        global_settings {
          radiosity {
            pretrace_start 0.08           // start pretrace at this size
            pretrace_end   0.04           // end pretrace at this size
            count 300                      // higher -> higher quality (1..1600) [35]  było 300
            nearest_count 10               // higher -> higher quality (1..10) [5] było 10
            error_bound 1.8               // higher -> smoother, less accurate [1.8]
            recursion_limit 3             // how much interreflections are calculated (1..5+) [3]
            low_error_factor .5           // reduce error_bound during last pretrace step
            gray_threshold 0.0            // increase for weakening colors (0..1) [0]
            minimum_reuse 0.015           // reuse of old radiosity samples [0.015]
            brightness 2                  // brightness of radiosity effects (0..1) [1]
        
            adc_bailout 0.01/2
            //normal on                   // take surface normals into account [off]
            //media on                    // take media into account [off]
            //save_file "file_name"       // save radiosity data
            //load_file "file_name"       // load saved radiosity data
            //always_sample off           // turn sampling in final trace off [on]
            //max_sample 1.0              // maximum brightness of samples
          }
        }

 box
 { 
        <-1000,0,-1000>,<1000,1500,3000>
        
        pigment { rgbt 1 } hollow
   interior
   { media
     { scattering { 1, 0.0007 extinction 0.02 }
       samples 3000,10000
     }

   }
 }


        


#break

#case(9)
        light_source{
                <0, 300, 2900>
                color rgb <0.835294117647059,0.247058823529412,0.141176470588235>
                area_light <  7.00,  7.00,  0.00>   <  0.00,  0.00,  7.00> 7.00, 7.00 
                adaptive 1 jitter 
                fade_distance 500 
                fade_power 10
        }
        global_settings {
          assumed_gamma 1.0
        }
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, 1>  
          translate <-2000, 1700, 360>
          
        }
        
        light_source {
          <0, 0, 0>            
          color rgb <1, 1, 1>  
          translate < 00, 1200, 1000>
        }
#break


#end


