'Where do i place the sin() formula for plane geometry to create a three.js particle wave?
pictureim trying to create a particle wave effect in three.js , losing my mind as i tried different methods. anyone have an idea what i could do? my code is down below.
// geomatry, material, mesh
const geometry = new THREE.PlaneBufferGeometry(5, 5, 64, 64)
const material = new THREE.PointsMaterial({color: 'aqua',
size: 0.007})
const particles = new THREE.Points(geometry, material);
particles.rotation.x = 181;
scene.add(particles);
// Lighting
const light = new THREE.PointLight(0xffffff, 2)
light.position.set(2, 3, 4);
scene.add(light);
const render = function() {
requestAnimationFrame(render)
// particles.rotation.z += .005
renderer.render(scene,camera);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
