Small improvement to the computation of the pixel size vector.

This commit is contained in:
Robert Osfield 2002-11-13 10:23:55 +00:00
parent b468d2f939
commit b6838c703e

View File

@ -74,8 +74,8 @@ void CullStack::pushCullingSet()
M(2,0)*P00 + M(2,2)*P20_00);
// scaling for vertical pixels
float P10 = P(1,1)*W.width()*0.5f;
float P20_10 = P(2,1)*W.width()*0.5f + P(2,3)*W.width()*0.5f;
float P10 = P(1,1)*W.height()*0.5f;
float P20_10 = P(2,1)*W.height()*0.5f + P(2,3)*W.height()*0.5f;
osg::Vec3 scale_10(M(0,1)*P10 + M(0,2)*P20_10,
M(1,1)*P10 + M(1,2)*P20_10,
M(2,1)*P10 + M(2,2)*P20_10);