Index: /OpenSceneGraph/trunk/examples/osgshape/osgshape.cpp
===================================================================
--- /OpenSceneGraph/trunk/examples/osgshape/osgshape.cpp (revision 6941)
+++ /OpenSceneGraph/trunk/examples/osgshape/osgshape.cpp (revision 10731)
@@ -21,8 +21,10 @@
 #include <osg/Material>
 #include <osg/Texture2D>
+#include <osgUtil/ShaderGen>
 
 #include <osgViewer/Viewer>
 
 #include <osgDB/ReadFile>
+#include <osgDB/WriteFile>
 
 #include <osg/Math>
@@ -35,4 +37,5 @@
     osg::Geode* geode = new osg::Geode();
 
+    
     // ---------------------------------------
     // Set up a StateSet to texture the objects
@@ -41,13 +44,16 @@
 
     osg::Image* image = osgDB::readImageFile( "Images/lz.rgb" );
-
     if (image)
     {
         osg::Texture2D* texture = new osg::Texture2D;
         texture->setImage(image);
-        stateset->setTextureAttributeAndModes(0,texture,osg::StateAttribute::ON);
+        texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR);
+        stateset->setTextureAttributeAndModes(0,texture, osg::StateAttribute::ON);
     }
     
+    stateset->setMode(GL_LIGHTING, osg::StateAttribute::ON);
+    
     geode->setStateSet( stateset );
+
     
     float radius = 0.8f;
@@ -99,5 +105,5 @@
     mesh->setIndices(indices);
     geode->addDrawable(new osg::ShapeDrawable(mesh));
-    
+
     return geode;
 }
