Skip to content

Commit

Permalink
fix(raster layer): raster layer triangle
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Nov 4, 2019
1 parent b0f6265 commit cce659a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/layers/src/raster/buffers/triangulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[],
Expand Down
2 changes: 1 addition & 1 deletion packages/layers/src/raster/shaders/raster_vert.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}

0 comments on commit cce659a

Please sign in to comment.