// Persistence of Vision Ray Tracer Scene Description File
// File: Example3D.pov
// Vers: 3.1
// Desc: Generates a 3D picture from a gray level 2D targa image
// Date: March 27th, 1999
// Auth: Alberto Strumia - BO (I)


// ==== Standard POV-Ray Includes ====
#include "colors.inc"	// Standard Color definitions
#include "textures.inc"	// Standard Texture definitions

camera{
location <1.6, 6.2, -15.5>
look_at 0
angle 45
}

// Set a color of the background (sky)
background { color red 0.2 green 0.6 blue 0.8 }

// create a regular point light source
light_source
{
  0*x // light's position (translated below)
  color Gold // light's color
  translate <1000, 1000, -100>
}

// An area light (creates soft shadows)
// WARNING: This special light can significantly slow down rendering times!
light_source
{
  0*x // light's position (translated below)
  color Silver  // light's color
  // < widthVector > < heightVector > nLightsWide mLightsHigh
  area_light
  <8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
  4, 4               // total number of lights in grid (4x*4z = 16 lights)
  adaptive 0          // 0,1,2,3...
  jitter              // adds random softening of light
  translate <40, 80, -40>   // <x y z> position of light
}

height_field {
tga "Example2D.tga"
smooth
pigment {agate
  agate_turb 0.2
  }

finish { ambient 0.2 specular 0.5 reflection 0.2 }

translate <-.5, 0.0, -.7>

scale <17, 1.75, 17>
}