From 38eb79067e0aaf65dd256f18ef8396ba0d0e8504 Mon Sep 17 00:00:00 2001 From: yunji Date: Wed, 5 Jun 2024 20:20:44 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/docs/api/other/plane.en.md | 4 ++-- site/docs/api/other/plane.zh.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/docs/api/other/plane.en.md b/site/docs/api/other/plane.en.md index eb5fb5dafc..1ddb637cf6 100644 --- a/site/docs/api/other/plane.en.md +++ b/site/docs/api/other/plane.en.md @@ -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; }, diff --git a/site/docs/api/other/plane.zh.md b/site/docs/api/other/plane.zh.md index ba7d413abc..30cfd9d7c0 100644 --- a/site/docs/api/other/plane.zh.md +++ b/site/docs/api/other/plane.zh.md @@ -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; },