Unable to use decal textures

I am not able to use decal maps. I’ve tried debugging but could not solve it.

The position of the picked point is in pickedInfo.pickedPoint, not pickedInfo.position.

Also, you have to be sure the texture and the mesh UV space renderer are ready before calling renderTexture: