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.27k stars 125 forks source link

wont work with ShaderMaterial #512

Closed nightfury07x closed 5 months ago

nightfury07x commented 5 months ago

I have a large context mesh that i have create a hole using shader material but when i add this mesh to render i got an error with shader material

gkjohnson commented 5 months ago

From the docs you'll see that ShaderMaterial is not supported..

Only MeshStandardMaterial and MeshPhysicalMaterial are supported.