Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Jun 5, 2024
1 parent b3c51c4 commit 38eb790
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions site/docs/api/other/plane.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const layer = new GeometryLayer().shape('plane').style({
terrainTexture:
'https://gw.alipayobjects.com/mdn/rms_23a451/afts/img/A*eYFaRYlnnOUAAAAAAAAAAAAAARQnAQ',
rgb2height: (r, g, b) => {
let h = -10000.0 + (r * 255.0 * 256.0 * 256.0 + g * 255.0 * 256.0 + b * 255.0) * 0.1;
h = h / 20 - 127600;
let h = (r * 255.0 * 256.0 * 256.0 + g * 255.0 * 256.0 + b * 255.0) * 0.1;
h = h / 200 - 12750;
h = Math.max(0, h);
return h;
},
Expand Down
4 changes: 2 additions & 2 deletions site/docs/api/other/plane.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const layer = new GeometryLayer().shape('plane').style({
terrainTexture:
'https://gw.alipayobjects.com/mdn/rms_23a451/afts/img/A*eYFaRYlnnOUAAAAAAAAAAAAAARQnAQ',
rgb2height: (r, g, b) => {
let h = -10000.0 + (r * 255.0 * 256.0 * 256.0 + g * 255.0 * 256.0 + b * 255.0) * 0.1;
h = h / 20 - 127600;
let h = (r * 255.0 * 256.0 * 256.0 + g * 255.0 * 256.0 + b * 255.0) * 0.1;
h = h / 200 - 12750;
h = Math.max(0, h);
return h;
},
Expand Down

0 comments on commit 38eb790

Please sign in to comment.