-
Notifications
You must be signed in to change notification settings - Fork 174
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
MSDFShader doesn't work under [email protected] #38
Comments
The problem has been the case from three v0.118.0. |
Stumbled across this one as well. Solution is to use the
If you replace your |
Hi, I ran into the same issue. I ended up updating the msdf shaders to #version 300 es for my own project.
sorry can't get the formatting right but this replaces the code in msdf.js it was straightforward to convert each compilation error one by one, referencing from: https://webgl2fundamentals.org/webgl/lessons/webgl1-to-webgl2.html |
I also stumbled upon this issue, either solution works good. Here are the formatted shaders from @gusvogel in case anyone needs it:
|
Thanks for formatting. I forgot to get back to this. |
With the latest versions:
three-bmfont-text v3.0.1
three v0.120.1
MSDFShader doesn't work
Test it here https://codesandbox.io/s/02-vertex-shader-forked-xz1cu?file=/src/components/WebGLFont/WebGLFont.js with the latest versions of the packages mentioned above.
(It is the demo to https://tympanus.net/codrops/2019/10/10/create-text-in-three-js-with-three-bmfont-text/)
If it's possible to configure renderer to render text correctly and not to get this error? Could you recommend something?
Thank you!
The text was updated successfully, but these errors were encountered: