Stensil material

I want to put a glb object in a sample project in tensilmaterial, but I can’t get it to work.

Can you provide a bit more context as to what you’re trying to do? Are you trying to use the three.js StencilBuffer?

and three.js: Stencil Materials | 8th Wall Playground | 8th Wall
in combination,
I would like to display this cube of stencil material with image detection.
The object I put inside the cube will display correctly if it is a primitive object, but if I put in a glb object I created, the drawing of the previous frame remains and appears on the screen like an afterimage when I move the camera.
I think the trigger is when a glb object is detected or when multiple glb objects are detected.
I am not sure what the cause is, so please let me know if you know anything about this.

Translated with DeepL.com (free version)

The specific problem is that if the object to be placed inside the cube of the stencil material is primitive, there is no bug, but when the asset is inserted, the drawing of the previous frame remains like an afterimage.