Skip to content

Commit

Permalink
fix: support clearState properly, avoid black fringes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Oct 22, 2020
1 parent 324ec31 commit 8e77d45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "threeify",
"version": "1.78.0",
"version": "1.79.0",
"description": "Typescript 3D Library loosely based on three.js",
"keywords": [
"threeify",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/engines/layerCompositor/LayerCompositor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class LayerCompositor {
#layerVersion = 0;
#offlineLayerVersion = -1;
firstRender = true;
clearState = new ClearState(new Vector3(1, 1, 1), 1.0);
clearState = new ClearState(new Vector3(1, 1, 1), 0.0);
offscreenFramebuffer: Framebuffer | undefined;
offscreenSize = new Vector2(0, 0);
offscreenColorAttachment: TexImage2D | undefined;
Expand Down Expand Up @@ -224,7 +224,7 @@ export class LayerCompositor {
);
const uvToTexture = makeMatrix3Concatenation(uvTranslation, uvScale);

canvasFramebuffer.clearState = new ClearState(new Vector3(0, 0, 0), 0.0);
canvasFramebuffer.clearState = this.clearState; // new ClearState(new Vector3(1, 1, 1), 0.0);
canvasFramebuffer.clear();

const offscreenColorAttachment = this.offscreenColorAttachment;
Expand Down

0 comments on commit 8e77d45

Please sign in to comment.