Conditionally toggle patternTexture for specific geometry in outlinePass

Is possible to conditionally toggle parrentTexture for a specific geometry in outlinePass?

I’m trying to create a 3D application where the user can hover & click on a geometry.

  • Hovering the geometry should display the outline of the geometry - which I was able to implement successfully,
  • Clicking on the geometry should select it - which needs to be visually represented by adding a texture with outline to the geometry.

I need help with implementing the click functionality.