Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/PenSkin.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ class PenSkin extends Skin {

const uniforms = {
u_skin: this._texture,
u_projectionMatrix: projection,
u_fudge: 0
u_projectionMatrix: projection
};

twgl.setUniforms(currentShader, uniforms);
Expand Down Expand Up @@ -477,8 +476,7 @@ class PenSkin extends Skin {
0
), __modelScalingMatrix),
__modelMatrix
),
u_fudge: 0
)
};

twgl.setTextureParameters(gl, texture, {minMag: gl.NEAREST});
Expand Down
3 changes: 1 addition & 2 deletions src/RenderWebGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1626,8 +1626,7 @@ class RenderWebGL extends EventEmitter {
gl.useProgram(currentShader.program);
twgl.setBuffersAndAttributes(gl, currentShader, this._bufferInfo);
Object.assign(uniforms, {
u_projectionMatrix: projection,
u_fudge: window.fudge || 0
u_projectionMatrix: projection
});
}

Expand Down
2 changes: 0 additions & 2 deletions src/shaders/sprite.frag
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
precision mediump float;

uniform float u_fudge;

#ifdef DRAW_MODE_silhouette
uniform vec4 u_silhouetteColor;
#else // DRAW_MODE_silhouette
Expand Down