Changeset 8857 for OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
- Timestamp:
- 09/16/08 11:31:29 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp
r8757 r8857 304 304 305 305 osg::Texture2D* texture = new osg::Texture2D(image); 306 texture->setResizeNonPowerOfTwoHint(false); 306 307 texture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR); 307 308 texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); … … 384 385 "void main(void)\n" 385 386 "{\n" 386 " vec4 texture_color = textureRect(movie_texture, gl_TexCoord[0] ); \n"387 " vec4 texture_color = textureRect(movie_texture, gl_TexCoord[0].st); \n" 387 388 " if (all(lessThanEqual(texture_color,cutoff_color))) discard; \n" 388 389 " gl_FragColor = texture_color;\n" … … 395 396 "void main(void)\n" 396 397 "{\n" 397 " vec4 texture_color = texture2D(movie_texture, gl_TexCoord[0] ); \n"398 " vec4 texture_color = texture2D(movie_texture, gl_TexCoord[0].st); \n" 398 399 " if (all(lessThanEqual(texture_color,cutoff_color))) discard; \n" 399 400 " gl_FragColor = texture_color;\n"
