mirror of https://gitee.com/antv-l7/antv-l7
fix: 暂时去除后处理
This commit is contained in:
parent
fdfc88f882
commit
63af07af86
|
@ -14,6 +14,7 @@ exports.onCreateWebpackConfig = ({ getConfig }) => {
|
||||||
'@antv/l7-core': path.resolve(__dirname, 'packages/core/src'),
|
'@antv/l7-core': path.resolve(__dirname, 'packages/core/src'),
|
||||||
'@antv/l7-component': path.resolve(__dirname, 'packages/component/src'),
|
'@antv/l7-component': path.resolve(__dirname, 'packages/component/src'),
|
||||||
'@antv/l7-layers': path.resolve(__dirname, 'packages/layers/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-maps': path.resolve(__dirname, 'packages/maps/src'),
|
||||||
'@antv/l7-renderer': path.resolve(__dirname, 'packages/renderer/src'),
|
'@antv/l7-renderer': path.resolve(__dirname, 'packages/renderer/src'),
|
||||||
'@antv/l7-scene': path.resolve(__dirname, 'packages/scene/src'),
|
'@antv/l7-scene': path.resolve(__dirname, 'packages/scene/src'),
|
||||||
|
|
|
@ -68,7 +68,7 @@ export default class MultiPassRenderer implements IMultiPassRenderer {
|
||||||
|
|
||||||
public resize(width: number, height: number) {
|
public resize(width: number, height: number) {
|
||||||
if (this.width !== width || this.height !== height) {
|
if (this.width !== width || this.height !== height) {
|
||||||
this.postProcessor.resize(width, height);
|
// this.postProcessor.resize(width, height);
|
||||||
this.width = width;
|
this.width = width;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,24 +79,23 @@ export default class PostProcessor implements IPostProcessor {
|
||||||
|
|
||||||
@postConstruct()
|
@postConstruct()
|
||||||
private init() {
|
private init() {
|
||||||
const { createFramebuffer, createTexture2D } = this.rendererService;
|
// const { createFramebuffer, createTexture2D } = this.rendererService;
|
||||||
this.readFBO = createFramebuffer({
|
// this.readFBO = createFramebuffer({
|
||||||
color: createTexture2D({
|
// color: createTexture2D({
|
||||||
width: 1,
|
// width: 1,
|
||||||
height: 1,
|
// height: 1,
|
||||||
wrapS: gl.CLAMP_TO_EDGE,
|
// wrapS: gl.CLAMP_TO_EDGE,
|
||||||
wrapT: gl.CLAMP_TO_EDGE,
|
// wrapT: gl.CLAMP_TO_EDGE,
|
||||||
}),
|
// }),
|
||||||
});
|
// });
|
||||||
|
// this.writeFBO = createFramebuffer({
|
||||||
this.writeFBO = createFramebuffer({
|
// color: createTexture2D({
|
||||||
color: createTexture2D({
|
// width: 1,
|
||||||
width: 1,
|
// height: 1,
|
||||||
height: 1,
|
// wrapS: gl.CLAMP_TO_EDGE,
|
||||||
wrapS: gl.CLAMP_TO_EDGE,
|
// wrapT: gl.CLAMP_TO_EDGE,
|
||||||
wrapT: gl.CLAMP_TO_EDGE,
|
// }),
|
||||||
}),
|
// });
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private isLastEnabledPass(index: number): boolean {
|
private isLastEnabledPass(index: number): boolean {
|
||||||
|
|
|
@ -24,13 +24,13 @@ export default class RenderPass<
|
||||||
|
|
||||||
public render(layer: ILayer) {
|
public render(layer: ILayer) {
|
||||||
const { useFramebuffer, clear } = this.rendererService;
|
const { useFramebuffer, clear } = this.rendererService;
|
||||||
const readFBO = layer.multiPassRenderer.getPostProcessor().getReadFBO();
|
// const readFBO = layer.multiPassRenderer.getPostProcessor().getReadFBO();
|
||||||
useFramebuffer(readFBO, () => {
|
useFramebuffer(null, () => {
|
||||||
clear({
|
clear({
|
||||||
color: [0, 0, 0, 0],
|
color: [0, 0, 0, 0],
|
||||||
depth: 1,
|
depth: 1,
|
||||||
stencil: 0,
|
stencil: 0,
|
||||||
framebuffer: readFBO,
|
// framebuffer: readFBO,
|
||||||
});
|
});
|
||||||
|
|
||||||
// render to post processor
|
// render to post processor
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
"@antv/l7-map": ["packages/map/src"],
|
"@antv/l7-map": ["packages/map/src"],
|
||||||
"@antv/l7-maps": ["packages/maps/src"],
|
"@antv/l7-maps": ["packages/maps/src"],
|
||||||
"@antv/l7-scene": ["packages/scene/src"],
|
"@antv/l7-scene": ["packages/scene/src"],
|
||||||
"@antv/l7-scene": ["packages/scene/src"],
|
|
||||||
"@antv/l7-renderer": ["packages/renderer/src"],
|
"@antv/l7-renderer": ["packages/renderer/src"],
|
||||||
"@antv/l7-three": ["packages/three/src"],
|
"@antv/l7-three": ["packages/three/src"],
|
||||||
"@antv/l7-source": ["packages/source/src"],
|
"@antv/l7-source": ["packages/source/src"],
|
||||||
|
|
Loading…
Reference in New Issue