fix: uses correct constant for Eye in Director (#16369)

fixes github issue #8354
This commit is contained in:
Ricardo Quesada 2016-08-15 23:27:20 -07:00 committed by GitHub
parent 02de525cbd
commit dcea1b65ae
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ void Director::purgeCachedData(void)
float Director::getZEye(void) const
{
return (_winSizeInPoints.height / 1.1566f);
return (_winSizeInPoints.height / (2 * tanf(M_PI/6)));
}
void Director::setAlphaBlending(bool on)