three-mesh-bvh icon indicating copy to clipboard operation
three-mesh-bvh copied to clipboard

Shader Functions: Add option for filtering by triangle side

Open gkjohnson opened this issue 2 years ago • 3 comments

Related to #463

gkjohnson avatar Sep 23 '22 21:09 gkjohnson

Hey, just trying to clarify what this issue is about.

I'm currently having a problem where I have a mesh whose material is set to THREE.FrontSide, but I want to receive both forward facing and backwards facing intersections when I do a raycast.

Does this issue mean I could configure the raycaster to "ignore" the material parameters and just give me all intersections? If so that would be great.

peterreeves avatar May 08 '23 06:05 peterreeves

No - this is for shader functions. The cpu raycast functions match the behavior of three.js' built-in functions. If you need both sides of the raycast hits both three.js and this project are flexible enough for you to change material settings or provide custom bvh raycast parameters to get what you're looking for.

gkjohnson avatar May 09 '23 00:05 gkjohnson

Ahh, ok. Thanks.

peterreeves avatar May 09 '23 01:05 peterreeves