force-directed-graph
force-directed-graph copied to clipboard
Test Raycasting
Normal THREE.Raycaster example doesn't work because the positions of all vertices are moving in the vertex shader. This means that the mouse position needs to be passed as a uniform to the points and links meshes.
More information to pick THREE.Points with the GPU here:
- https://discourse.threejs.org/t/three-points-use-gpu-picking-is-not-work/9045
- https://gist.github.com/duhaime/1eafa293e7ce16b074a6d55cac67badc
- https://bl.ocks.org/duhaime/1eafa293e7ce16b074a6d55cac67badc
- https://threejs.org/examples/?q=interactive#webgl_interactive_cubes_gpu