From 22c695cdefaae4bf624827b0b232c23c723056a9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 14 Apr 2005 08:00:25 +0000 Subject: [PATCH] From Mike Weiblen, fixed copy and paste error in new osgshaders.cpp example. --- examples/osgshaders/GL2Scene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgshaders/GL2Scene.cpp b/examples/osgshaders/GL2Scene.cpp index 0cf4c06fb..07fcf8a03 100644 --- a/examples/osgshaders/GL2Scene.cpp +++ b/examples/osgshaders/GL2Scene.cpp @@ -11,7 +11,7 @@ */ /* file: examples/osgglsl/GL2Scene.cpp - * author: Mike Weiblen 2005-03-30 + * author: Mike Weiblen 2005-04-13 * * Compose a scene of several instances of a model, with a different * OpenGL Shading Language shader applied to each. @@ -249,7 +249,7 @@ class AnimateCallback: public osg::NodeCallback OffsetUniform->set( osg::Vec3(0.505f, 0.8f*v01, 0.0f) ); SineUniform->set( sine ); Color1Uniform->set( osg::Vec3(v10, 0.0f, 0.0f) ); - Color1Uniform->set( osg::Vec3(v01, v01, v10) ); + Color2Uniform->set( osg::Vec3(v01, v01, v10) ); } traverse(node, nv); }