Skip to content

Commit

Permalink
Fix stamping vector skins in high quality pen
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jul 10, 2021
1 parent ada7c4d commit 63a941a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/RenderWebGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,11 @@ class RenderWebGL extends EventEmitter {
const projection = twgl.m4.ortho(bounds.left, bounds.right, bounds.top, bounds.bottom, -1, 1);

// Draw the stamped sprite onto the PenSkin's framebuffer.
this._drawThese([stampID], ShaderManager.DRAW_MODE.default, projection, {ignoreVisibility: true});
this._drawThese([stampID], ShaderManager.DRAW_MODE.default, projection, {
ignoreVisibility: true,
framebufferWidth: this._nativeSize[0] * skin.renderQuality,
framebufferHeight: this._nativeSize[1] * skin.renderQuality
});
skin._silhouetteDirty = true;
}

Expand Down

0 comments on commit 63a941a

Please sign in to comment.