#version 3.7;
global_settings {
    assumed_gamma 1.0
    radiosity { count 100 error_bound 0.5 } // Reales Umgebungslicht
}

#include "colors.inc"
#include "textures.inc"

// Kamerasicht
camera {
    location <0, 5, -8>
    look_at  <0, 0, 0>
    angle 45
}

// Ausrichtung der Sonne (z. B. Höhe 45°, Azimut 180° / Süd)
#declare SunDirection = <0, 1, 1>; 

// Realistische Lichtquelle für weiche Schatten
light_source {
    SunDirection * 1000
    color rgb <1.0, 0.95, 0.85> * 1.5 // Warmes Sonnenlicht
    area_light <10, 0, 0>, <0, 0, 10>, 9, 9 // Erzeugt weiche Schattenkanten
    adaptive 1
    jitter
}

// Himmel/Umgebungslicht (Schattenaufhellung)
sky_sphere {
    pigment {
        gradient y
        color_map {
            [0.0 color rgb <0.6, 0.7, 0.9>] // Horizont
            [1.0 color rgb <0.2, 0.4, 0.8>] // Zenit
        }
    }
}

// Zifferblatt (Bodenplatte)
plane {
    y, 0
    texture {
        pigment { color rgb <0.85, 0.82, 0.75> } // Steinoptik
        finish { ambient 0.1 diffuse 0.8 roughness 0.3 }
    }
}

// Gnomon (Schattenwerfer - Stab)
cylinder {
    <0, 0, 0>, <0, 2, 0>, 0.05
    texture {
        pigment { color rgb <0.3, 0.3, 0.3> }
        finish { metal roughness 0.1 }
    }
}
