Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 20: Lighting Your World

../ch20/20fig16b.gif
Figure 20.16b

A mesh illuminated by spotlights with the outer cone set to 45.0 degrees and the inner set to 22.5 degrees. Compare with Figures 20.16a and c.

20fig16b.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        SpotLight {
            location  0.0 5.0 0.0
            direction 0.0 -1.0 0.0
            radius    12.0
            intensity 1.0
            cutOffAngle 0.785
            beamWidth   0.392
        },
        Inline {
            url "mesh.wrl"
            bboxCenter 0.0 0.0 0.0
            bboxSize   16.0 1.0 16.0
        }
    ]
}