fix(raster layer): raster layer triangle

This commit is contained in:
thinkinggis 2019-11-04 11:33:38 +08:00
parent de276d7512
commit 755ef1aa2d
2 changed files with 2 additions and 2 deletions

View File

@ -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[],

View File

@ -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));
}