-
Notifications
You must be signed in to change notification settings - Fork 24
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
WebGL view implementation #6
Comments
Some other interesting work done on this: |
Actually, you'd might want to use this too. https://github.com/libgdx/libgdx/wiki/Distance-field-fonts You can render a font to a buffer once, and then use that for font scaling |
Here's another, slightly related http://wdobbie.com/post/gpu-text-rendering-with-vector-textures/ It has a pretty cool demo here http://wdobbie.com/pdf/ I'd like to implement an initial WebGL version sometime soon, just trying to decide on what's going to be best for performance (and also trying to find time to get around to it!). EDIT: looks like GitHub's new experimental editor also uses WebGL in electron to render text: https://github.com/atom/xray |
Hi, cool project! I'm interested on extending xi-electron and digging a bit into xi-editor, would an early try at the implementation with PixiJS be ok? I don't know much about WebGL and shaders and all, i guess Pixi is a good start (not too verbose framework on top of WebGL), then individual parts (like the gutter for a start) could be replaced with more performant WebGL code with custom shaders and stuff? |
@danigulyas thanks! I want the But the project is designed in such a way that you can add a I'd be more than happy to include it as a separate view there 👍😄👍 |
Have you considered using Kha for render it's low level and has low level text support, it renders using Shaders ( webgl or native ), in theory it should not be too hard to port TS to Haxe and I would be willing to help out if I can, this would open up opportunites for use of tech like https://github.com/Kode/Krom. |
The boilerplate is there, and we can look at the
View
interface for details on what needs implementing.Potentially useful links:
The text was updated successfully, but these errors were encountered: