Fixed the scaling in pixelSize computation and the autoscale usage of it.

This commit is contained in:
Robert Osfield 2005-03-23 10:46:08 +00:00
parent a61a99251f
commit 60597f4bbb
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ void AutoTransform::accept(NodeVisitor& nv)
if (getAutoScaleToScreen())
{
float size = 1.0f/cs->pixelSize(getPosition(),1.0f);
float size = 1.0f/cs->pixelSize(getPosition(),0.48f);
setScale(size);
}

View File

@ -106,7 +106,7 @@ void CullStack::pushCullingSet()
M(2,2)*P23,
M(3,2)*P23 + M(3,3)*P33);
float scaleRatio = 0.701f/sqrtf(scale_00.length2()+scale_10.length2());
float scaleRatio = 0.7071067811f/sqrtf(scale_00.length2()+scale_10.length2());
pixelSizeVector *= scaleRatio;