Skip to content

Commit ad26098

Browse files
newnonminggo
authored andcommitted
projection fixes (#17487)
1 parent 666e001 commit ad26098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/base/CCDirector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ void Director::purgeCachedData(void)
707707

708708
float Director::getZEye(void) const
709709
{
710-
return (_winSizeInPoints.height / 1.1566f);
710+
return (_winSizeInPoints.height / 1.154700538379252f);//(2 * tanf(M_PI/6))
711711
}
712712

713713
void Director::setAlphaBlending(bool on)

0 commit comments

Comments
 (0)