// Szene:   S9: Beispiel fuer durchsichtige Körper: Kugel aus Glas
// Autor:   Jan Hannemann
// Datum:   26.06.1997

#include "colors.inc"          // Fuer die Farben
#include "textures.inc"        // Fuer die Oberflaechen

sphere {
	 <0,0,0>, 1.5            // Kugel: Ursprung, Radius: 1,5
	 texture {
             Glass             // Fensterglas
       }
       finish { ambient 0.15}  // Etwas aufgehellt
}

sphere {
 	 <-5,2.2,0>, 1.5                  // 2. Kugel, etwas verschoben, rot
	 texture {
              pigment {color Red}       // Rot gefaerbt
		  finish {ambient 0.4 specular 1  roughness 0.01  reflection 0.3}
      }
}

text { ttf "crystal.ttf", "CG", 2, 0    // Text: CG
       rotate <-90, 180, 85>            // Korrekt gedreht
       translate <-0.1, -0.6, -0.2>     // Verschoben
       pigment { color Green }          // Gruen gefaerbt
       finish { ambient 0.25 diffuse 0.6 }
       scale <2, 2, 2>                  // Skaliert
}

light_source { <10, -2, 8> colour White }
light_source { < 2,  5, 8> colour White }

camera {
	location <20, -1, 2>     // Standpunkt
	direction 4*z            // Zoom
  	sky z                    // Sonst ist die Y-Achse oben
	look_at <0,0,0>          // VRP
}

plane {
	-1*z                     // Plane: Normalenvektor
	1.5                      // Abstand zu <0,0,0>
	pigment {                // Faerbung / Muster
		checker            // Schachbrett mit den Farben ...
        	      color Black  // Schwarz und
		      color White  // Weiss
	}
      finish { ambient 0.5}
}

