mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-28 22:30:04 -04:00
Merge pull request #491 from adroitwhiz/dont-fudge-up-the-renderer
Remove u_fudge
This commit is contained in:
commit
13b9ed7e16
3 changed files with 3 additions and 8 deletions
|
@ -332,8 +332,7 @@ class PenSkin extends Skin {
|
|||
|
||||
const uniforms = {
|
||||
u_skin: this._texture,
|
||||
u_projectionMatrix: projection,
|
||||
u_fudge: 0
|
||||
u_projectionMatrix: projection
|
||||
};
|
||||
|
||||
twgl.setUniforms(currentShader, uniforms);
|
||||
|
@ -474,8 +473,7 @@ class PenSkin extends Skin {
|
|||
0
|
||||
), __modelScalingMatrix),
|
||||
__modelMatrix
|
||||
),
|
||||
u_fudge: 0
|
||||
)
|
||||
};
|
||||
|
||||
twgl.setTextureParameters(gl, texture, {minMag: gl.NEAREST});
|
||||
|
|
|
@ -1720,8 +1720,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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
precision mediump float;
|
||||
|
||||
uniform float u_fudge;
|
||||
|
||||
#ifdef DRAW_MODE_silhouette
|
||||
uniform vec4 u_silhouetteColor;
|
||||
#else // DRAW_MODE_silhouette
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue