From 88d4101b2d65f5edce8e62b835c41e36ecea3dbe Mon Sep 17 00:00:00 2001 From: nicomacbookpro <805879871@qq.com> Date: Thu, 21 Aug 2025 13:33:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E9=9D=A2=E5=84=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/plane_ocean.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/plane_ocean.js b/src/utils/plane_ocean.js index 273a315..35f246a 100644 --- a/src/utils/plane_ocean.js +++ b/src/utils/plane_ocean.js @@ -177,4 +177,10 @@ const oceanGeometry = new PlaneGeometry(50, 50, 5, 5); oceanGeometry.rotateX(-Math.PI / 2); const ocean = new Mesh(oceanGeometry, sm); +function animate() { + gu.time.value += 0.01 + requestAnimationFrame(animate) +} +animate() + export { ocean }