Fixed the scaling in pixelSize computation and the autoscale usage of it.
This commit is contained in:
parent
a61a99251f
commit
60597f4bbb
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user