Some examples in povray and further reading.

global_settings{
ambient_light rgb<1,1,1>
photons{ count 100000
media 10
autostop 0
jitter .4
}
}
light_source {<0,10,5>,1}
camera{location <30,30,5>
right x*image_width/image_height look_at 0}
cylinder{<0,0,0>,<0,10,0>,2
pigment{ color rgbf <1,1,1,1> }
finish{
reflection .1
ior 1.2
phong 0}
photons { target reflection on }
photons {
target
refraction on
reflection on
collect off
}
}
plane{y,0
pigment{
color rgb <.3,.3,.3>
}
finish{
diffuse .7
reflection 0}
}

global_settings{
ambient_light rgb<1,1,1>
photons{ count 100000
media 10
autostop 0
jitter .4
}
}
light_source {<0,7,5>,.5
}
camera{location <30,30,5>
right x*image_width/image_height look_at 0}
sphere{<-1,3,1>,5
pigment{ color rgbf <1,1,1,1> }
finish{
reflection .1
ior 1.2
phong 0}
photons { target reflection on }
photons {
target
refraction on
reflection on
collect off
}
}
plane{y,-2.5
pigment{
color rgb <.3,.3,.3>
}
finish{
diffuse .7
reflection 0}
}
Created: 03-03-2021 [10:10]
Last updated: 23-01-2025 [00:04]
For attribution, please cite this page as:
Charters, T., "Raytracing": https://nexp.pt/povraylight.html (23-01-2025 [00:04])
(cc-by-sa) Tiago Charters - tiagocharters@nexp.pt