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 }