// POV-Ray 3.6 Scene File "minimal.pov"
// by Friedrich A. Lohmüller, 18.Aug.2005
#version 3.6;
global_settings {  assumed_gamma 1.0 }

#default {
    finish{
        ambient 0.1
        diffuse 0.9
    }
}

//-----------------------------------------
#include "colors.inc"
#include "textures.inc"

// camera ---------------------------------
camera {
    location <0.0 , 1.0 ,-3.0>
    look_at  <0.0 , 1.0 , 0.0>
}

// sun ------------------------------------
light_source {
    <1500,2500,-2500>
    color White
}

// sky -----------------------------------
sky_sphere {
    pigment {
        gradient <0,1,0>
        color_map {
            [0.00 rgb <0.6,0.7,1.0>]
            [0.35 rgb <0.0,0.1,0.8>]
            [0.65 rgb <0.0,0.1,0.8>]
            [1.00 rgb <0.6,0.7,1.0>]
        }
        scale 2
    }
}

// ground ---------------------------------
plane {
    <0,1,0>, 0
    texture {
        pigment {
            color rgb <0.85,0.6,0.4>
        }
        //normal {
        //    bumps 0.75
        //    scale 0.025
        //}
    }
}

// osm textures ----------------------------
#declare highway = texture {
    pigment {
        color rgb<1,0.65,0>
    }
    finish {
        phong 1
    }
}

#declare building = texture {
    pigment {
        color rgb<1,0.8,0.8>
    }
    finish {
        phong 1
    }
}

//sphere{
//    <0,0,0>, 0.75
//    translate <0.5,1.25,0>
//    texture { highwayPrimary }
//}

// a polygon, e.g. a street or a landuse
polygon {
    5, 
    <-0.5, 0.3>, <-0.5, 1.5>, <0.5, 0.5>, <0.5, 0>, <-0.5, 0.3>
    rotate <90,0,0>
    translate <0,0.0001,0>
    texture { highway }
}

// a building
prism {
    linear_sweep
    linear_spline
    0, // sweep the following shape from here ...
    0.5, // ... up through here (=height)
    5, // the number of points making up the shape ...
    <0, 0>, <0, 0.5>, <-0.5, 0.5>, <-0.5, 0>, <0, 0> // shape
    rotate <0,50,0> // rotation
    translate <-1.5,0,0> // position
    texture { building }
}

//-------------------------------------- end
