Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. diff --git a/src/runtime/shaders/distancefieldtext.vert b/src/runtime/shaders/distancefieldtext.vert
  2. index 879545f..13d94d1 100644
  3. --- a/src/runtime/shaders/distancefieldtext.vert
  4. +++ b/src/runtime/shaders/distancefieldtext.vert
  5. @@ -58,7 +58,7 @@ highp float determinant(highp mat4 m)
  6. void main()
  7. {
  8. highp float scale = fontScale * sqrt(abs(determinant(modelView)));
  9. - alphas = alphaRange(scale);
  10. + alphas = alphaRange(fontScale);
  11. sampleCoord = tCoord * highp vec2(1.0 / highp float(textureWidth), 1.0 / highp float(textureHeight));
  12. gl_Position = mvp * vCoord;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement