未验证 提交 4d5cd265 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15769 from maccesch/dev

fixed render target restoration after shadow map rendering
......@@ -100,6 +100,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
if ( lights.length === 0 ) return;
var currentRenderTarget = _renderer.getRenderTarget();
var _state = _renderer.state;
// Set GL state for depth map.
......@@ -256,6 +258,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
scope.needsUpdate = false;
_renderer.setRenderTarget( currentRenderTarget );
};
function getDepthMaterial( object, material, isPointLight, lightPositionWorld, shadowCameraNear, shadowCameraFar ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册