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

Merge mapbox-gl-shaders repo into this repo #3787

Merged
merged 288 commits into from Dec 14, 2016
Merged

Merge mapbox-gl-shaders repo into this repo #3787

merged 288 commits into from Dec 14, 2016

Conversation

lucaswoj
Copy link
Contributor

@lucaswoj lucaswoj commented Dec 13, 2016

As a step towards creating the monorepo, this PR merges the mapbox-gl-shaders repo into this repo.

Open Questions

  • Where should the shaders go in the directory structure? They can go in a shaders directory
  • Should we continue publishing the shaders as a separate npm package? Nah
  • How can we best preserve the git history of mapbox-gl-shaders? 👍

Launch Checklist

  • briefly describe the changes in this PR
  • manually test the debug page
  • move over mapbox-gl-shaders's README.md
  • 🚢
  • migrate mapbox-gl-shaders issues & PRs
  • mark the mapbox-gl-shaders github repo as deprecated

tmcw and others added 30 commits March 14, 2014 13:57
Switching back to the old way of doing it.

ref #120
- move calculation outside the shaders as much as possible
- remove effectless code
…sitions passed through as varying per feature.
Example options used to create a video source:

{
    type: 'video',
    url: 'http://mapbox.s3.amazonaws.com/llmr-demo/aleppo.mp4',
    coordinates: [
        [37.17021346092223, 36.20638184589834],
        [37.18670368194580, 36.20444264512721],
        [37.18577027320862, 36.19716155628325],
        [37.16894745826721, 36.19928275195264]
    ]
}

Create a video bucket with { filter: { type: video } }
brunoabinader and others added 17 commits June 20, 2016 14:07
Add support for property functions in line-color
* Remove unnecessary IFDEFS
* Rename a_minH to a_base and a_maxH to a_height for naming consistency
* Remove unused color attributes from fill_extrusion_pattern shaders
* Add support for line-blur property functions

* Add support for line-opacity property functions

* Remove "u_antialiasing"

* Add support for misc line property functions

* remove u_blur and u_opacity from line_sdf

* remove u_devicepixelratio in favor of DEVICE_PIXEL_RATIO

* move line transformation logic to shaders

* DRY-ify line transformation math

* remove unused var from line fragment shader
* Add support for circle-stroke-* properties

* Fix merge artifacts

* Eliminate common subexpressions, adjust formatting per PR review
@ansis
Copy link
Contributor

ansis commented Dec 13, 2016

How can we best preserve the git history of mapbox-gl-shaders?

this should work http://stackoverflow.com/questions/13040958/merge-two-git-repositories-without-breaking-file-history/20974621#20974621

@jfirebaugh
Copy link
Contributor

For this merge I would use the technique from http://stackoverflow.com/a/14470212/52207 rather than git subtree.

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

Successfully merging this pull request may close these issues.

None yet