mirror of https://github.com/axmolengine/axmol.git
fix: uses correct constant for Eye in Director (#16369)
fixes github issue #8354
This commit is contained in:
parent
02de525cbd
commit
dcea1b65ae
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue