提交 cdbe2f86 编写于 作者: M Mr.doob

CSS3DRenderer: Simplified fov calculation.

上级 565c6fd0
......@@ -261,7 +261,7 @@ THREE.CSS3DRenderer = function () {
this.render = function ( scene, camera ) {
var fov = 0.5 / Math.tan( THREE.Math.degToRad( camera.getEffectiveFOV() * 0.5 ) ) * _height;
var fov = camera.projectionMatrix.elements[ 5 ] * _heightHalf;
if ( cache.camera.fov !== fov ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册