提交 22142f23 编写于 作者: M Marc-Sefan Cassola

fixed multi sample render targets

上级 d46e33b6
......@@ -1089,7 +1089,7 @@ function WebGLRenderer( parameters ) {
currentRenderState = renderStates.get( scene, camera );
currentRenderState.init();
scene.onBeforeRender( _this, scene, camera, renderTarget );
scene.onBeforeRender( _this, scene, camera, _currentRenderTarget );
_projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
_frustum.setFromMatrix( _projScreenMatrix );
......@@ -1160,15 +1160,15 @@ function WebGLRenderer( parameters ) {
//
if ( renderTarget !== undefined ) {
if ( _currentRenderTarget ) {
// Generate mipmap if we're using any kind of mipmap filtering
textures.updateRenderTargetMipmap( renderTarget );
textures.updateRenderTargetMipmap( _currentRenderTarget );
// resolve multisample renderbuffers to a single-sample texture if necessary
textures.updateMultisampleRenderTarget( renderTarget );
textures.updateMultisampleRenderTarget( _currentRenderTarget );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册