How to set the fog that works for all characters

Setting the fog effect through the texture method is only effective for the currently set object, and has no effect on other characters in the scene. I want to ask if there is a way to achieve a fog effect that is effective for all characters in the scene, so that only the characters and the scene near the player are lit. I tried to use the texture method, and ultimately failed. It should be that I don’t know much about panda3d. At present, I can only ask everyone for help again!

You can apply the texture to all objects. It’s not restricted to a single object.

Indeed, I also tested setting the same texture for all characters, but then I had no way to achieve the partial lighting using a brush. Or am I lighting it wrong?