Pushed background image away from eye point a small amount to prevent z fighting with text on the image plane.
This commit is contained in:
parent
90748f8b74
commit
9bf3d2b7ce
@ -484,7 +484,8 @@ void SlideShowConstructor::addLayer(bool inheritPreviousLayers, bool defineAsBas
|
||||
bool useTextureRectangle = true;
|
||||
float s = useTextureRectangle ? image->s() : 1.0;
|
||||
float t = useTextureRectangle ? image->t() : 1.0;
|
||||
osg::Geometry* backgroundQuad = osg::createTexturedQuadGeometry(_slideOrigin,
|
||||
osg::Vec3 backgroundShift(0.0f, _slideWidth*0.0001f, 0.0f);
|
||||
osg::Geometry* backgroundQuad = osg::createTexturedQuadGeometry(_slideOrigin+backgroundShift,
|
||||
osg::Vec3(_slideWidth,0.0f,0.0f),
|
||||
osg::Vec3(0.0f,0.0f,_slideHeight),
|
||||
s, t);
|
||||
|
Loading…
Reference in New Issue
Block a user