Show
Ignore:
Timestamp:
07/11/07 16:16:02 (7 years ago)
Author:
robert
Message:

Added support for --sky-light and headlight with local position at 0,0,0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp

    r6941 r7098  
    699699    } 
    700700 
     701    while (arguments.read("--sky-light")) 
     702    { 
     703        viewer.setLightingMode(osg::View::SKY_LIGHT); 
     704    } 
     705     
     706    if (viewer.getLightingMode()==osg::View::HEADLIGHT) 
     707    { 
     708        viewer.getLight()->setPosition(osg::Vec4(0.0f,0.0f,0.0f,1.0f)); 
     709    } 
     710 
    701711 
    702712    // load the nodes from the commandline arguments.