- Timestamp:
- 04/11/06 15:22:59 (7 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgprecipitation/osgprecipitation.cpp
r5082 r5083 22 22 #include <osg/Program> 23 23 #include <osg/Fog> 24 #include <osg/Point> 25 #include <osg/PointSprite> 24 26 #include <osg/io_utils> 25 27 … … 253 255 osg::Geometry* point_geometry = 0; 254 256 255 #if 1257 #if 0 256 258 quad_geometry = new PrecipitationGeometry; 257 259 quad_geometry->setUseVertexBufferObjects(true); … … 270 272 #endif 271 273 272 #if 0 274 #if 0 273 275 line_geometry = new PrecipitationGeometry; 274 276 line_geometry->setUseVertexBufferObjects(true); … … 288 290 289 291 290 #if 0292 #if 1 291 293 point_geometry = new PrecipitationGeometry; 292 294 point_geometry->setUseVertexBufferObjects(true); … … 301 303 // get shaders from source 302 304 program->addShader(osg::Shader::readShaderFile(osg::Shader::VERTEX, osgDB::findDataFile("point_rain.vert"))); 303 program->addShader(osg::Shader::readShaderFile(osg::Shader::FRAGMENT, osgDB::findDataFile("point_rain.frag"))); 305 program->addShader(osg::Shader::readShaderFile(osg::Shader::FRAGMENT, osgDB::findDataFile("rain.frag"))); 306 307 /// Setup the point sprites 308 osg::PointSprite *sprite = new osg::PointSprite(); 309 point_stateset->setTextureAttributeAndModes(0, sprite, osg::StateAttribute::ON); 310 311 point_stateset->setMode(GL_VERTEX_PROGRAM_POINT_SIZE, osg::StateAttribute::ON); 312 304 313 } 305 314 #endif
