ported from -js: c52a09639ceeeb809cd837360993df9c45b45420 This replaces a hardcoded shader approximation with a more correct, FOV-dependent one. `gl_Position.w - 0.5` is replaced with `gl_Position.w / tan(fov)` The `/ tan(fov)` is handled by multiplying `1 / tan(fov)` into `u_gamma` outside the shader. I think `- 0.5` was just chosen as something that looked right for the default fov.lease enter the commit message for your changes. Lines starting
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"name": "mapbox-gl-native",
|
|
"version": "3.4.2",
|
|
"description": "Renders map tiles with Mapbox GL",
|
|
"keywords": [
|
|
"mapbox",
|
|
"gl"
|
|
],
|
|
"main": "platform/node/index.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mapbox/mapbox-gl-native.git"
|
|
},
|
|
"license": "BSD-2-Clause",
|
|
"dependencies": {
|
|
"node-pre-gyp": "^0.6.28",
|
|
"nan": "^2.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"aws-sdk": "^2.3.5",
|
|
"csscolorparser": "^1.0.2",
|
|
"ejs": "^2.4.1",
|
|
"express": "^4.11.1",
|
|
"lodash": "^4.16.4",
|
|
"mapbox-gl": "mapbox/mapbox-gl-js#c52a09639ceeeb809cd837360993df9c45b45420",
|
|
"mapbox-gl-style-spec": "mapbox/mapbox-gl-style-spec#49e8b407bdbbe6f7c92dbcb56d3d51f425fc2653",
|
|
"mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#da53a81453068f4c2b440f9077d6bd5e7e14ff3d",
|
|
"mkdirp": "^0.5.1",
|
|
"node-cmake": "^1.2.1",
|
|
"pixelmatch": "^4.0.2",
|
|
"pngjs": "^3.0.0",
|
|
"request": "^2.72.0",
|
|
"tape": "^4.5.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=4.2.1"
|
|
},
|
|
"scripts": {
|
|
"preinstall": "npm install node-pre-gyp",
|
|
"install": "node-pre-gyp install --fallback-to-build=false || make node",
|
|
"test": "tape platform/node/test/js/**/*.test.js",
|
|
"test-memory": "node --expose-gc platform/node/test/memory.test.js",
|
|
"test-suite": "node platform/node/test/render.test.js && node platform/node/test/query.test.js"
|
|
},
|
|
"gypfile": true,
|
|
"binary": {
|
|
"module_name": "mapbox-gl-native",
|
|
"module_path": "./lib/",
|
|
"host": "https://mapbox-node-binary.s3.amazonaws.com",
|
|
"remote_path": "./{name}/v{version}",
|
|
"package_name": "{node_abi}-{platform}-{arch}.tar.gz"
|
|
}
|
|
}
|