• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Lights

In addition to the default headlight that VRML browsers automatically provide (see Chapter 8, "Customizing Color and Texture" ), VRML offers three specific types of light nodes that authors can use to illuminate their worlds: DirectionalLight, PointLight, and SpotLight. Together these light nodes give content authors a means to simulate three common light sources found in our real world, namely directional lights, point lights, and spotlights.

Directional light sources are positioned infinitely far away from a scene. As a result, the light rays cast by a directional light are parallel and travel in the same direction. In the real world, light rays cast by the sun originate so far away that they are practically parallel when they reach the earth. Because our planet is awash in parallel rays of light that travel mostly in the same direction, we can consider the sun a directional light source.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint