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

WebGLRenderer: Removed setupMatrices function.

上级 05b53e87
......@@ -1715,7 +1715,8 @@ THREE.WebGLRenderer = function ( parameters ) {
var object = webglObject.object;
var geometry = objects.update( object );
setupMatrices( object, camera );
object._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
object._normalMatrix.getNormalMatrix( object._modelViewMatrix );
if ( overrideMaterial === undefined ) material = object.material;
......@@ -1753,7 +1754,8 @@ THREE.WebGLRenderer = function ( parameters ) {
var object = renderList[ i ];
setupMatrices( object, camera );
object._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
object._normalMatrix.getNormalMatrix( object._modelViewMatrix );
if ( overrideMaterial === undefined ) material = object.material;
......@@ -2923,13 +2925,6 @@ THREE.WebGLRenderer = function ( parameters ) {
}
function setupMatrices( object, camera ) {
object._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
object._normalMatrix.getNormalMatrix( object._modelViewMatrix );
}
function setColorLinear( array, offset, color, intensity ) {
array[ offset + 0 ] = color.r * intensity;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册