Skip to content

Commit

Permalink
final improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
machine committed Dec 4, 2023
1 parent 109023b commit 8cb60dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dev/core/src/Meshes/meshUVSpaceRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,12 @@ export class MeshUVSpaceRenderer {
effect.setTexture("maskTextureSampler", this._maskTexture);
effect.setVector2("textureSize", new Vector2(this._options.width, this._options.height));
};
if (MeshUVSpaceRenderer._IsRenderTargetTexture(this.texture)) {
this.texture.addPostProcess(this._finalPostProcess);
}
}

if (MeshUVSpaceRenderer._IsRenderTargetTexture(this.texture)) {
this.texture.addPostProcess(this._finalPostProcess);
this.texture.render();
}
} catch (error) {
Expand Down

0 comments on commit 8cb60dc

Please sign in to comment.