Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling causes clipping of last letter #35

Open
vincentpotato opened this issue Feb 25, 2020 · 0 comments
Open

Scaling causes clipping of last letter #35

vincentpotato opened this issue Feb 25, 2020 · 0 comments

Comments

@vincentpotato
Copy link

I am trying to scale my text to be smaller but whenever I do the last letter is clipped like shown in the picture below. It should say "Spacetime" but the E is clipped.
Screenshot 2020-02-25 at 17 05 03

This is the function that creates the textMesh

const geometry = createGeometry({ font, text: text, letterSpacing:letterSpacing, width:width, }); // Create material with msdf shader from three-bmfont-tex const material = new THREE.RawShaderMaterial(MSDFShader({ map: texture, color: color, side: THREE.DoubleSide, transparent: false, negate: false, }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant