|
@@ -1374,8 +1374,8 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
var object = webglObject.object;
|
|
|
var geometry = objects.update( object );
|
|
|
|
|
|
- object._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
|
|
|
- object._normalMatrix.getNormalMatrix( object._modelViewMatrix );
|
|
|
+ object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
|
|
|
+ object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
|
|
|
|
|
|
if ( overrideMaterial === undefined ) material = object.material;
|
|
|
|
|
@@ -1415,8 +1415,8 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
var object = renderList[ i ];
|
|
|
|
|
|
- object._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
|
|
|
- object._normalMatrix.getNormalMatrix( object._modelViewMatrix );
|
|
|
+ object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
|
|
|
+ object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
|
|
|
|
|
|
if ( overrideMaterial === undefined ) material = object.material;
|
|
|
|
|
@@ -2222,11 +2222,11 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
function loadUniformsMatrices ( uniforms, object ) {
|
|
|
|
|
|
- _gl.uniformMatrix4fv( uniforms.modelViewMatrix, false, object._modelViewMatrix.elements );
|
|
|
+ _gl.uniformMatrix4fv( uniforms.modelViewMatrix, false, object.modelViewMatrix.elements );
|
|
|
|
|
|
if ( uniforms.normalMatrix ) {
|
|
|
|
|
|
- _gl.uniformMatrix3fv( uniforms.normalMatrix, false, object._normalMatrix.elements );
|
|
|
+ _gl.uniformMatrix3fv( uniforms.normalMatrix, false, object.normalMatrix.elements );
|
|
|
|
|
|
}
|
|
|
|