hisprofile / blenderstuff

Guides made by me after 7 years of experience, diving into Blender's inner workings.
278 stars 34 forks source link

Radial fog is missing #3

Open wolfestridershooter opened 3 weeks ago

wolfestridershooter commented 3 weeks ago

Valve Source Engine games from L4D1 onward use a radial technique for rendering fog which looks far better than the planer one method. Radial fog is missing from the Source Engine Blender Collection fog shader.

From VDC: "Older Source games render fog as a plane a certain distance away from the camera. This method is bad, as rotating the camera will strengthen or weaken the apparent amount of fog in a particular spot, even though the viewer hasn't moved at all. In Left 4 Dead[confirm] onward, this is fixed by implementing a new radial method which is independent from the viewing angle."

Source: https://developer.valvesoftware.com/wiki/Env_fog_controller

hisprofile commented 3 weeks ago

hey there, thanks for submitting this.

can you provide comparisons between the two methods (and possibly more on the radial fog)? the current fog method implementation is also independent on view angle, so if this isn't similar to the radial fog method, i'm not sure what is