light intensity directional vx vy vz
Use directional light for distant light sources (such as the sun). The light source shines in the direction of the vector (vx,vy,vz) -> (0,0,0).
Figure 3-4
/*
directional.ray
Directional Light Example
Stephen Peter 14 Feb 93
*/
eyep 11.25 -6.72 5
lookp 5 2 1.5
screen 300 200
background .9 .9 .9
light 1 directional -1 -1 1
------- the remainder is the same as area.ray-------
Go to next section: Extended Light.
Return to Contents.
THE END - Notes on Rayshade - 3 - Lighting and Atmospheric Effects - Directional Light