海面儿
This commit is contained in:
@@ -177,4 +177,10 @@ const oceanGeometry = new PlaneGeometry(50, 50, 5, 5);
|
|||||||
oceanGeometry.rotateX(-Math.PI / 2);
|
oceanGeometry.rotateX(-Math.PI / 2);
|
||||||
const ocean = new Mesh(oceanGeometry, sm);
|
const ocean = new Mesh(oceanGeometry, sm);
|
||||||
|
|
||||||
|
function animate() {
|
||||||
|
gu.time.value += 0.01
|
||||||
|
requestAnimationFrame(animate)
|
||||||
|
}
|
||||||
|
animate()
|
||||||
|
|
||||||
export { ocean }
|
export { ocean }
|
||||||
|
|||||||
Reference in New Issue
Block a user