How to enable GPUPick from back of the plane

Dear expert,

Recently I am using the GPUpick and in general it works great.

But it cannot pick the object that the normal is facing the other way.

Just want to ask if there is anyway that we can still pick the object.

For example the ground in the PG. the Material is set to be double side. So user can always see the ground. But when we turn around the ground, GPU Pick cannot pick it.

GPUPick Back Plane | Babylon.js Playground

Many Thanks.

Ok I did a PR to expose the shader material used by the GPU Picker. This way you can turn off backFaceCulling:

picker.defaultRenderMaterial.backFaceCulling = false;

Expose the default render material for GPUPicker by deltakosh · Pull Request #16724 · BabylonJS/Babylon.js

4 Likes

Thank you as always. Will test it out.

1 Like