

#declare sciana_boczna=box
{
        <0, 0,0>,<30,1400,4000>
        material { M_tynk }
}
#declare sufit=box
{
        <0, 0,0>,<2060,30,4000>
        material { M_tynk }
}
#declare sciana_boczna_oltarz=difference
{
        box{ <0, 0,0>,<74,1400,600> }
        box{ <-1, 0,74>,<75,600,274> }
        cylinder{ <-1, 600,174>,<75,600,174>,100 }
        material { M_tynk }
}
#declare sciana_oltarz=box
{
        <0, 0,0>,<2060,1400,30>
        material { M_tynk }
}











#declare okno_diff=union
{
        box
        {
                <0,0,-100>,<50,700,100>
        }
        cylinder
        {
                <0,700,0>,<50,700,0>,100
        }
        pigment { color White }        
        
}                

#declare okno_metal=union
{
        difference
        {
                union{
                        box
                        {
                                <0,0,-100>,<10,700,100>
                        }
                        cylinder
                        {
                                <0,700,0>,<10,700,0>,100
                        }
                }
                box
                {
                        <-10,5,-95>,<20,700,95>
                }
                cylinder
                {
                        <-10,700,0>,<20,700,0>,95
                }
        }      
        box { <0,0,-35>,<3,792,-30> } // pionowa
        box { <0,0,30>,<3,792,35> }    // pionowa
        box { <0,220,-100>,<3,225,100> }
        box { <0,445,-100>,<3,450,100> }
        box { <0,670,-100>,<3,675,100> }
        texture { T_czarny_metal } 
        
}







#declare szyba_jezus=union
{
        box
        {
                <0,5,-95>,<1,700,95>
        }
        cylinder
                {
        <0,700,0>,<1,700,0>,95
        }
       
       texture{
         pigment{
                image_map {
                        jpeg "jezus.jpg"
                        //once
                        map_type 3
                        filter all 0.9
                        //transmit all 0.1
                
        
                }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        }
        finish{
                      Phong_Glossy
                    }
    }
        normal
        {
                bump_map {
                        jpeg "jezus_bump.jpg"
                        //once
                        map_type 3
        

                        }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        
                }

}
        

#declare szyba_maria=union
{
        box
        {
                <0,5,-95>,<1,700,95>
        }
        cylinder
                {
        <0,700,0>,<1,700,0>,95
        }
       
       texture{
         pigment{
                image_map {
                        jpeg "maria.jpg"
                        //once
                        map_type 3
                        filter all 0.9
                        //transmit all 0.1
                
        
                }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        }
        finish{
                      Phong_Glossy
                    }
    }
        normal
        {
                bump_map {
                        jpeg "maria_bump.jpg"
                        //once
                        map_type 3
        

                        }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        
                }

}


#declare szyba_maria_czarna=union
{
        box
        {
                <0,5,-95>,<1,700,95>
        }
        cylinder
                {
        <0,700,0>,<1,700,0>,95
        }
       
       texture{
         pigment{
                image_map {
                        jpeg "maria_czarna.jpg"
                        //once
                        map_type 3
                        filter all 0.9
                        //transmit all 0.1
                
        
                }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        }
        finish{
                      Phong_Glossy
                    }
    }
        normal
        {
                bump_map {
                        jpeg "maria_czarna_bump.jpg"
                        //once
                        map_type 3
        

                        }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        
                }

}
#declare szyba_krzyz=union
{
        box
        {
                <0,5,-95>,<1,700,95>
        }
        cylinder
                {
        <0,700,0>,<1,700,0>,95
        }
       
       texture{
         pigment{
                image_map {
                        jpeg "krzyz.jpg"
                        //once
                        map_type 3
                        filter all 0.9
                        //transmit all 0.1
                
        
                }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        }
        finish{
                      Phong_Glossy
                    }
    }
        normal
        {
                bump_map {
                        jpeg "krzyz_bump.jpg"
                        //once
                        map_type 3
        

                        }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        
                }

}
#declare szyba_krzyz2=union
{
        box
        {
                <0,5,-95>,<1,700,95>
        }
        cylinder
                {
        <0,700,0>,<1,700,0>,95
        }
       
       texture{
         pigment{
                image_map {
                        jpeg "krzyz2.jpg"
                        //once
                        map_type 3
                        filter all 0.9
                        //transmit all 0.1
                
        
                }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        }
        finish{
                      Phong_Glossy
                    }
    }
        normal
        {
                bump_map {
                        jpeg "krzyz2_bump.jpg"
                        //once
                        map_type 3
        

                        }
                rotate <0,-90,0>
                scale <500,850,200>
                translate <0,00,-100>
        
                }

}


#declare szyby_lewe=union
{
        object { szyba_krzyz2 translate <-1040, 300, -260> }
        object { szyba_maria translate <-1040, 300, 340> }
        object { szyba_maria_czarna translate <-1040, 300, 940> }
        object { szyba_krzyz translate <-1040, 300, 1540> }
        object { szyba_jezus translate <-1040, 300, 2140> }
}


#declare sciana_boczna_okna=difference
{ 
        object { sciana_boczna translate <-1030,0,-1000>}
        object { okno_diff translate <-1040, 300, -260> }
        object { okno_diff translate <-1040, 300, 340> }
        object { okno_diff translate <-1040, 300, 940> }
        object { okno_diff translate <-1040, 300, 1540> }
        object { okno_diff translate <-1040, 300, 2140> }
}
#declare okna_metal_bok=union
{
        object { okno_metal translate <-1040, 300, -260> }
        object { okno_metal translate <-1040, 300, 340> }
        object { okno_metal translate <-1040, 300, 940> }
        object { okno_metal translate <-1040, 300, 1540> }
        object { okno_metal translate <-1040, 300, 2140> }        
}                                                                 






#declare sciana_tylnia=union
{       difference
        {
                box { <0,0,0>,<2060,1400,30> }
                box { <80,-5,-5>,<380,800,35> }
                box { <1650,-5,-5>,<1950,800,35> }
                box { <630,-5,-5>,<1430,800,35> }
                
        }
         material { M_tynk }
}
#declare sciana_tylnia2=union
{
        box { <0,0,0>,<2060,1400,30> }
        material { M_tynk }
}


#declare sciana_oltarz_bl=union
{
        box { <0,0,0>,<74,1400,30> }
        box { <0,600,0>,<404,1400,30> }
        
}
 


#declare sciana_oltarz_lewa=difference
{
        object { sciana_oltarz_bl }
        cylinder { <239,600,-5>,<239,600,35>,165}
        material { M_tynk }
        
}


#declare sciana_oltarz_bp=union
{
        box { <-22,0,0>,<74,1400,30> }
        box { <0,600,0>,<404,1400,30> }
        
}
 


#declare sciana_oltarz_prawa=difference
{
        object { sciana_oltarz_bp }
        cylinder { <239,600,-5>,<239,600,35>,165}
        material { M_tynk }
        
}

                                
                               





#if(_okna_)
        object { szyby_lewe }
        object { szyby_lewe translate <2060,0,0> }
        object { okna_metal_bok }
        object { okna_metal_bok translate <2060,0,0>}
#end


#if(_sciany_)
        object { sciana_tylnia translate <-1030,0,-574> }
        object { sciana_tylnia2 translate <-1030,0,-1030> }
        object { sciana_boczna_okna }
        object { sciana_boczna_okna translate <2030,0,0>}
        object { sciana_boczna_oltarz translate <500,0,2400>}
        object { sciana_boczna_oltarz translate <-597,0,2400>}
        object { sciana_oltarz translate <-1030,0,3000>}
        object { sciana_oltarz_lewa translate <-1000,0,2400> }
        object { sciana_oltarz_prawa rotate y*180 translate <978,0,2430> }    
        object { sufit translate <-1030,1400,-1000>}
        
#end