not sure
This commit is contained in:
parent
560398fefb
commit
80ed37298b
73 changed files with 3619 additions and 1295 deletions
|
|
@ -33,10 +33,10 @@ export class SimulationFrameRenderer {
|
|||
this.textures.copyTrailMapAToB(commandEncoder);
|
||||
if (isErasing) {
|
||||
if (this.pipelines.eraserAgentPipeline.hasActiveMask()) {
|
||||
const eraserMask = this.textures.clearEraserMask(commandEncoder);
|
||||
this.pipelines.eraserTexturePipeline.execute(commandEncoder, eraserMask);
|
||||
this.pipelines.eraserTexturePipeline.executeMultiTarget(
|
||||
const eraserMask = this.textures.eraserMask.getTextureView();
|
||||
this.pipelines.eraserTexturePipeline.executeCombined(
|
||||
commandEncoder,
|
||||
eraserMask,
|
||||
this.textures.sourceMapA.getTextureView(),
|
||||
this.textures.influenceMapA.getTextureView(),
|
||||
this.textures.trailMapB.getTextureView()
|
||||
|
|
@ -59,7 +59,8 @@ export class SimulationFrameRenderer {
|
|||
this.pipelines.diffusionPipeline.execute(
|
||||
commandEncoder,
|
||||
this.textures.trailMapB.getTextureView(),
|
||||
this.textures.trailMapA.getTextureView()
|
||||
this.textures.trailMapA.getTextureView(),
|
||||
this.textures.trailMapA.getSize()
|
||||
);
|
||||
const canvasTexture = this.pipelines.renderPipeline.execute(
|
||||
commandEncoder,
|
||||
|
|
@ -70,12 +71,14 @@ export class SimulationFrameRenderer {
|
|||
this.pipelines.diffusionPipeline.execute(
|
||||
commandEncoder,
|
||||
this.textures.sourceMapA.getTextureView(),
|
||||
this.textures.sourceMapB.getTextureView()
|
||||
this.textures.sourceMapB.getTextureView(),
|
||||
this.textures.sourceMapB.getSize()
|
||||
);
|
||||
this.pipelines.brushEffectDiffusionPipeline.execute(
|
||||
commandEncoder,
|
||||
this.textures.influenceMapA.getTextureView(),
|
||||
this.textures.influenceMapB.getTextureView()
|
||||
this.textures.influenceMapB.getTextureView(),
|
||||
this.textures.influenceMapB.getSize()
|
||||
);
|
||||
|
||||
this.device.queue.submit([commandEncoder.finish()]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue