修改
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user