I want a fog effect to prevent the player from viewing past a certain distance, as the world gets loaded in chunks.
The fog property in Roblox’s Lighting works well for this, however when the camera is zoomed out, the fog hides more of the world, as the fog is centered around the camera. The problem is that I want the fog to be centered around the player character, so that when the user zooms out their camera the fog covers the same amount of the world, however I do not know how to achieve this as there is no property to set the fogs focus in the properties editor.
Maybe there is a better solution to this, or a way to do it via a script, but I am not a Roblox Studio expert and I was not able to find anything that met my requirements online.
Camera zoomed in, the hill behind my mouse is visible.
Camera zoomed out, the hill is now hidden by fog, I want the fog to be done around the player character, not around the cameras position.