But that doesn’t solve the problem. OK, the mosquito is gone, but I need that to happen for an external object, not inside.
In order to illustrate this, in your playground, if you put the camera close to the “bloc.000” object, you will see it is refracted also through the amber, even when that object is outside the amber:
Note that I had to wait for a few frames before removing the block from opaqueTexture.renderList to let the system time to add the objects loaded from the 2nd glTF file to the list.