mirror of https://gitee.com/antv-l7/antv-l7
fix(raster layer): raster layer triangle
This commit is contained in:
parent
de276d7512
commit
755ef1aa2d
|
@ -13,7 +13,7 @@ export function RasterTriangulation(parserData: IParseDataItem) {
|
|||
}
|
||||
const martini = new Martini(gridSize);
|
||||
const tile = martini.createTile(terrain);
|
||||
const mesh = tile.getMesh(1024);
|
||||
const mesh = tile.getMesh(gridSize / 2);
|
||||
return {
|
||||
vertices: Array.from(mesh.vertices) as number[],
|
||||
indices: Array.from(mesh.triangles) as number[],
|
||||
|
|
|
@ -35,6 +35,6 @@ void main() {
|
|||
|
||||
// vec2 range = u_extent.zw - u_extent.xy;
|
||||
// vec4 project_pos = project_position(vec4(pos, 0, 1.0));
|
||||
gl_Position = project_common_position_to_clipspace(vec4(pos.xy, project_scale(value) * 50., 1.0));
|
||||
gl_Position = project_common_position_to_clipspace(vec4(pos.xy, project_scale(value) * 10., 1.0));
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue