点光源は色 color と位置 location だけで指定する。
light {
color 1.0, 0.5, 1.0
location (0, 5, 0)
}
ライトに direction で向き、angle で光のあたる範囲 (角度) を指定できる。
light {
color 1.0, 1.0, 1.0
location (-10.0, 20.0, 20.0)
direction (10.0, -20.0, -20.0)
angle 10.0
}
light {
color 1.0, 1.0, 1.0
location (-10.0, 20.0, 20.0)
direction (10.0, -20.0, -20.0)
angle 15.0
insideangle 10.0
beamdistribution 5.0
}
shadows offを含んでいると、このライトの影は off になる。