提交 5d7e32a3 编写于 作者: A alteredq

Changed camera matrix update in WebGLRenderer to happen just once per frame,...

Changed camera matrix update in WebGLRenderer to happen just once per frame, no need to do it with every object.
上级 87e0d754
......@@ -387,7 +387,6 @@ THREE.WebGLRenderer = function () {
this.setupMatrices = function ( object, camera ) {
camera.autoUpdateMatrix && camera.updateMatrix();
object.autoUpdateMatrix && object.updateMatrix();
_viewMatrix.multiply( camera.matrix, object.matrix );
......@@ -407,6 +406,8 @@ THREE.WebGLRenderer = function () {
this.render = function ( scene, camera ) {
camera.autoUpdateMatrix && camera.updateMatrix();
var o, ol, object;
if ( this.autoClear ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册