Oliver Wipfli
Oliver Wipfli
@pka you did something like this, right?
The MSDF RGBAImage is taken from https://github.com/openglobus/openglobus
@Zemledelec I tried to copy your code from openglobus in `label.ts`. Here in the fragment shader you have a separate outline pass: https://github.com/openglobus/openglobus/blob/88c2a6356841e7111fbf012272fc0b930434834c/src/shaders/label.ts#L215-L230 And there is this division by `length(dxdy)`....
Thank you @Zemledelec for the detailed response!
`fwidth()` probably requires `gl.getExtension("OES_standard_derivatives");`, see https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives
Right @birkskyum some functions that needed extensions in webgl 1 are included by default in webgl 2. I updated the first post of this pull request and added a link...
Demo should work now. I forgot the @2x sprite assets
I updated the fragment shader to now also support outlines and font weight.
Added an ASCII covering font, so now we can use the demo tiles labels for the demo...
Basic proof of concept seems to work. Closing this draft pull request...