Remove u_fudge

This commit is contained in:
adroitwhiz 2019-08-08 12:15:27 -04:00
parent cc5fea803e
commit 06def05119
3 changed files with 3 additions and 8 deletions

View File

@ -335,8 +335,7 @@ class PenSkin extends Skin {
const uniforms = { const uniforms = {
u_skin: this._texture, u_skin: this._texture,
u_projectionMatrix: projection, u_projectionMatrix: projection
u_fudge: 0
}; };
twgl.setUniforms(currentShader, uniforms); twgl.setUniforms(currentShader, uniforms);
@ -477,8 +476,7 @@ class PenSkin extends Skin {
0 0
), __modelScalingMatrix), ), __modelScalingMatrix),
__modelMatrix __modelMatrix
), )
u_fudge: 0
}; };
twgl.setTextureParameters(gl, texture, {minMag: gl.NEAREST}); twgl.setTextureParameters(gl, texture, {minMag: gl.NEAREST});

View File

@ -1626,8 +1626,7 @@ class RenderWebGL extends EventEmitter {
gl.useProgram(currentShader.program); gl.useProgram(currentShader.program);
twgl.setBuffersAndAttributes(gl, currentShader, this._bufferInfo); twgl.setBuffersAndAttributes(gl, currentShader, this._bufferInfo);
Object.assign(uniforms, { Object.assign(uniforms, {
u_projectionMatrix: projection, u_projectionMatrix: projection
u_fudge: window.fudge || 0
}); });
} }

View File

@ -1,7 +1,5 @@
precision mediump float; precision mediump float;
uniform float u_fudge;
#ifdef DRAW_MODE_silhouette #ifdef DRAW_MODE_silhouette
uniform vec4 u_silhouetteColor; uniform vec4 u_silhouetteColor;
#else // DRAW_MODE_silhouette #else // DRAW_MODE_silhouette