Aerial perspective doesn't seem to be working right

Godot Version

4.3 with the godot_voxel module added (shouldn’t be different from vanilla Godot in this case, as it shouldn’t mess with rendering).

Question

I’m currently trying to use aerial perspective in my game but for some reason it just looks like the inside of an untextured cube. I have no idea what is causing this but using different sky types also doesn’t work properly.

Custom shader sky:

Procedural sky:

Physical sky:

I would attach the project but I don’t think it would run without using a this version of Godot.

I need to be able to fade objects into the sky as they get further away since the render distance on this game is pretty low due to the cost of terrain generation.

I’ve been experimenting with aerial perspective too, and had similar results. It seems like the fog_aerial_perspective option does not take view direction into account, or at least not as strongly as we would like. I filed an issue about this: Fog aerial perspective does not blend seamlessly into the sky · Issue #97803 · godotengine/godot · GitHub