Make an overlayed scene in a viewport a pointer blocker?

Can you make a viewport intercept the pointer events? I know its being generated from canvas coords, but would there be a way in my predicate to check if its in a viewport and if so ignore it?

I guess in the pointerEvents I have the canvas position and could manually figure it out. Just did not know if there was a more intuitive way.

Here’s a thread that discusses this a little (I think), but probably easier might be to create a GUI and place a rectangle over the viewport and set the rectangle.isPointerBlocker = true;

I need the items in the viewport to be pickable still though. Just intercepting the picks so there is not a double interaction with the two scenes.

Here is an example.

I need to make sure that when you click the sphere on a place that the plane is covered by it that the second scene “eats” the pointer interaction and prevents the first scene from registering the pointer event.

UPDATE

This is the only real solution I could think of, but really want something more natural.