This commit is contained in:
nicomacbookpro
2025-08-21 13:26:37 +08:00
parent 317300a4bb
commit 5bfe8ffa5b
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ waveHeight += 3.0 * sin(angle1);
float angle2 = mod(25.0 * time + -3.0 * p.x * k, 360.0) * 3.14159 / 180.0; float angle2 = mod(25.0 * time + -3.0 * p.x * k, 360.0) * 3.14159 / 180.0;
waveHeight += 2.0 * sin(angle2); waveHeight += 2.0 * sin(angle2);
return vec3(p.x, waveHeight, p.z); return vec3(p.x, 1.0, p.z);
} }
void main(){ void main(){
v_uv = uv; v_uv = uv;

View File

@@ -264,7 +264,7 @@ export default {
this.legendList = this.demo1.getGroups() this.legendList = this.demo1.getGroups()
// planeDesert.position.set(25, 2, 25) // planeDesert.position.set(25, 2, 25)
// this.demo1.scene.add(planeDesert) // this.demo1.scene.add(planeDesert)
ocean.position.set(25, 5, 25) ocean.position.set(25, 1, 25)
this.demo1.scene.add(ocean) this.demo1.scene.add(ocean)
}, },
beforeDestroy() { beforeDestroy() {