diff --git a/gatsby-node.js b/gatsby-node.js index 4cfaa38452..9493d394d5 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -14,6 +14,7 @@ exports.onCreateWebpackConfig = ({ getConfig }) => { '@antv/l7-core': path.resolve(__dirname, 'packages/core/src'), '@antv/l7-component': path.resolve(__dirname, 'packages/component/src'), '@antv/l7-layers': path.resolve(__dirname, 'packages/layers/src'), + '@antv/l7-map': path.resolve(__dirname, 'packages/map/src'), '@antv/l7-maps': path.resolve(__dirname, 'packages/maps/src'), '@antv/l7-renderer': path.resolve(__dirname, 'packages/renderer/src'), '@antv/l7-scene': path.resolve(__dirname, 'packages/scene/src'), diff --git a/packages/core/src/services/renderer/passes/MultiPassRenderer.ts b/packages/core/src/services/renderer/passes/MultiPassRenderer.ts index 43e75ad7af..57f709dd19 100644 --- a/packages/core/src/services/renderer/passes/MultiPassRenderer.ts +++ b/packages/core/src/services/renderer/passes/MultiPassRenderer.ts @@ -68,7 +68,7 @@ export default class MultiPassRenderer implements IMultiPassRenderer { public resize(width: number, height: number) { if (this.width !== width || this.height !== height) { - this.postProcessor.resize(width, height); + // this.postProcessor.resize(width, height); this.width = width; this.height = height; } diff --git a/packages/core/src/services/renderer/passes/PostProcessor.ts b/packages/core/src/services/renderer/passes/PostProcessor.ts index 2f24f2db1a..9aa25691f7 100644 --- a/packages/core/src/services/renderer/passes/PostProcessor.ts +++ b/packages/core/src/services/renderer/passes/PostProcessor.ts @@ -79,24 +79,23 @@ export default class PostProcessor implements IPostProcessor { @postConstruct() private init() { - const { createFramebuffer, createTexture2D } = this.rendererService; - this.readFBO = createFramebuffer({ - color: createTexture2D({ - width: 1, - height: 1, - wrapS: gl.CLAMP_TO_EDGE, - wrapT: gl.CLAMP_TO_EDGE, - }), - }); - - this.writeFBO = createFramebuffer({ - color: createTexture2D({ - width: 1, - height: 1, - wrapS: gl.CLAMP_TO_EDGE, - wrapT: gl.CLAMP_TO_EDGE, - }), - }); + // const { createFramebuffer, createTexture2D } = this.rendererService; + // this.readFBO = createFramebuffer({ + // color: createTexture2D({ + // width: 1, + // height: 1, + // wrapS: gl.CLAMP_TO_EDGE, + // wrapT: gl.CLAMP_TO_EDGE, + // }), + // }); + // this.writeFBO = createFramebuffer({ + // color: createTexture2D({ + // width: 1, + // height: 1, + // wrapS: gl.CLAMP_TO_EDGE, + // wrapT: gl.CLAMP_TO_EDGE, + // }), + // }); } private isLastEnabledPass(index: number): boolean { diff --git a/packages/core/src/services/renderer/passes/RenderPass.ts b/packages/core/src/services/renderer/passes/RenderPass.ts index 0229c2b5d2..ccfadf4fac 100644 --- a/packages/core/src/services/renderer/passes/RenderPass.ts +++ b/packages/core/src/services/renderer/passes/RenderPass.ts @@ -24,13 +24,13 @@ export default class RenderPass< public render(layer: ILayer) { const { useFramebuffer, clear } = this.rendererService; - const readFBO = layer.multiPassRenderer.getPostProcessor().getReadFBO(); - useFramebuffer(readFBO, () => { + // const readFBO = layer.multiPassRenderer.getPostProcessor().getReadFBO(); + useFramebuffer(null, () => { clear({ color: [0, 0, 0, 0], depth: 1, stencil: 0, - framebuffer: readFBO, + // framebuffer: readFBO, }); // render to post processor diff --git a/tsconfig.json b/tsconfig.json index 59a9e787d3..e0ccf11251 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,6 @@ "@antv/l7-map": ["packages/map/src"], "@antv/l7-maps": ["packages/maps/src"], "@antv/l7-scene": ["packages/scene/src"], - "@antv/l7-scene": ["packages/scene/src"], "@antv/l7-renderer": ["packages/renderer/src"], "@antv/l7-three": ["packages/three/src"], "@antv/l7-source": ["packages/source/src"],