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

Mirror: Inlined updateTextureMatrix() in onBeforeRender().

上级 70c40965
......@@ -109,7 +109,7 @@ THREE.Mirror = function ( width, height, options ) {
scope.material = material;
function updateTextureMatrix( camera ) {
scope.onBeforeRender = function ( renderer, scene, camera ) {
scope.updateMatrixWorld();
......@@ -181,11 +181,7 @@ THREE.Mirror = function ( width, height, options ) {
projectionMatrix.elements[ 10 ] = clipPlane.z + 1.0 - clipBias;
projectionMatrix.elements[ 14 ] = clipPlane.w;
}
scope.onBeforeRender = function ( renderer, scene, camera ) {
updateTextureMatrix( camera );
// Render
scope.visible = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册