refill-style
refill-style copied to clipboard
old: Texture dots
Adding a sdf-shape that could be reused for other styles. How it works?
- takes a SDF texture
u_sdf - which can be transform into a
fillorstrokeshape - I replace the previous
circlefunction with it
We now can do more complex patterns if we want : )
Notes from discussion with @patriciogonzalezvivo:
- Use a smaller dot texture, this one is quite big (78k), and I doubt the resolution is needed
- Let's not include non-production files like the shader used to generate the dot. It's useful to save, but my goal is to have the bundler just be zip (e.g. not require any special bundling script that has to fetch additional files or exclude others).
You could put the 'brick' tiling pattern into the SDF texture as well, to further simplify the shader!
Yes @blair1618 ! that's next on my TODO... I will wait for this PR to merge so I don't introduce a lot of changes at once. cc @nvkelso @bcamper @sensescape
@nvkelso @bcamper can we merge this?
@patriciogonzalezvivo can you help @sensescape and I debug why tiny-dots: don't show up at all? This is affecting landuse styles like cemetery and garden. We've set them to medium-dots in the meantime.
hi @nvkelso, not sure what you need. seams like an old PR that wasn't merge