mapbox
源码解析
GAMESLI-GIS
web3D 图形学爱好者 BJFU GIS硕
展开
-
【mapbox 样式】light
viewport”:光照位置不变,所以building旋转的时候,其表面明暗程度会变化“map”:光照随地图位置变化,所以buliding旋转的时候,其表面明显程度不会变化了。原创 2023-05-31 15:25:25 · 404 阅读 · 0 评论 -
【mapbox其他】mapbox threebox中three更新记录
three升级到126以后,状态重置需要使用this.renderer.resetState() update() { if (this.map.repaint) this.map.repaint = false // this.renderer.state.reset() this.renderer.resetState() //update threejs r126 ... }...原创 2021-09-14 16:51:28 · 316 阅读 · 0 评论 -
【mapbox其他】mapbox样式相关资料
进阶mapbox GL之paint和filterhttps://www.jianshu.com/p/8c7edd9e90bcjingsam 中文样式文档https://jingsam.github.io/mapbox-gl-style-spec/德国数据样式参考http://test.sharegis.cn/mapbox/html/6germany.html原创 2021-08-30 10:36:25 · 106 阅读 · 0 评论 -
【mapbox其他】java-vector-tile
https://github.com/ElectronicChartCentre/java-vector-tile/tree/master/src/main/java/no/ecc/vectortile原创 2021-08-30 10:28:14 · 438 阅读 · 0 评论 -
【mapbox其他】mapbox远端雾化实现原理(以background类型图层为例)
在backgrund对应片元着色器中background.fragment if(v_pos_fog.y/v_pos_fog.w>u_calheight-0.1){ float y_screen = v_pos_fog.y/v_pos_fog.w; float fogFactor = 1. - smoothstep(u_calheight-0.1, u_calheight , y_screen);原创 2021-04-12 13:03:09 · 337 阅读 · 0 评论 -
【mapbox其他】mapbox 裁剪坐标系详解
1.mapbox z轴 -1是指向屏幕方向 1是内侧方向2.mapbox shader里面的gl_Position 计算后webgl会自动进行透视除法得到-1至1的裁剪空间测试了貌似mapbox只有建筑才有深度,其他都是没开深度检测建筑的深度模式为const depthMode = new DepthMode(painter.context.gl.LEQUAL, DepthMode.ReadWrite, painter.depthRangeFor3D);...原创 2021-04-10 15:34:51 · 1124 阅读 · 0 评论 -
【mapbox其他】mapbox scheme规范
mapbox scheme规范1.源码路径2.源码详解1.源码路径src/source/tile_id.js2.源码详解`url(urls: Array<string>, scheme: ?string) { const bbox = getTileBBox(this.x, this.y, this.z); const quadkey = getQuadkey(this.z, this.x, this.y); return urls[(this.x + thi原创 2021-04-10 15:30:41 · 299 阅读 · 0 评论