gkjohnson / three-gpu-pathtracer

Path tracing renderer and utilities for three.js built on top of three-mesh-bvh.
https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/index.html
MIT License
1.28k stars 125 forks source link

WebGPU support #431

Open georgy95 opened 1 year ago

georgy95 commented 1 year ago

Chrome team is shipping WebGPU support in 113 release.

I'm curious to find out about your plans on WebGPU and if this release has any significant impact on the project. Is three-gpu-pathtracer compatible with the WebGPURenderer as is?

Three.js currently has limited support for WebGPURenderer.

gkjohnson commented 1 year ago

Hello! WebGPU is still very new and while I haven't used it yet I'm not sure if the three.js WebGPURenderer is considered stable. Once the ecosystem has matured a bit more an upgrade to WebGPU would be good for the project - I'm hoping it should provide some improvements especially with the ability to move rendering into a computer shader.

If you're interested in contributing some work or experimenting on this it would be greatly appreciated. The raycasting logic in three-mesh-bvh would be the place to start.