gkjohnson / three-mesh-bvh

A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.
https://gkjohnson.github.io/three-mesh-bvh/example/bundle/raycast.html
MIT License
2.39k stars 247 forks source link

Transform morph targets, skinned mesh in shaders #503

Open gkjohnson opened 1 year ago

gkjohnson commented 1 year ago

Render positions, UVs, colors, tangents, normals to MRT and read them back.

gkjohnson commented 1 year ago

Can the transformed attributes be arbitrary? Or only support what three.js supports in shaders for morph targets, etc. Only the critical / commonly changing fields are updated and written out while the rest are static in the geometry buffer.

gkjohnson commented 1 year ago

Multiple geometries can be rendered at once with offsets so full scenes can be generated. Perhaps this can just be called "GPUStaticGeometryGenerator"