I'm having a hard time finding the file that contains the Environment resource's depth based fog effect (the one that uses "depth_curve", not the volumetric one) in the Godot codebase. I want to implement some minor features so that the fog matches the style of my game.
(This cannot practically be done with shaderscript due to many of my world's materials classifying as "transparent", which hint_screen_texture doesn't render, and using subviewports and cameras to simulate BackBufferCopy in 3D doesn't work because I cannot access the subviewport's depth map after rendering the scene, I need the depth map for fog effects).
Right now I'm trying to follow these variables, and i will post again if i find it.
"
float fog_depth_curve = 1.0;
float fog_depth_begin = 10.0;
float fog_depth_end = 100.0;
"