Files
godot-demo-projects/3d/volumetric_fog
Hugo Locurcio 5f4a9e409f Use InputEventMouseMotion.screen_relative where relevant in all demos (#1232)
This provides mouse sensitivity that is independent of the viewport
size, without needing to query for project settings.

This also inverts the mouse motion direction in the 3D navigation demo
to better match expectations, and increases mouse sensitivity in the
Window Management demo to be closer to other demos.
2025-10-01 18:54:19 -07:00
..
2025-03-21 02:00:41 +01:00
2021-10-31 22:02:48 +01:00
2025-03-21 02:00:41 +01:00
2025-03-21 02:00:41 +01:00

Volumetric Fog

This is an example of Godot's volumetric fog capabilities with the Vulkan renderer.

Showcased features are:

  • Positive/negative density volumes that affect albedo (incoming light) and emission.
  • Box/ellipsoid shapes, height falloff, and density modulation using a 3D texture.
  • Temporal reprojection for greater stability and avoiding flickering.
    • The difference is demonstrated with a moving fog volume.
  • Global density adjustment. With FogVolume nodes that have a positive density, it's possible to apply volumetric fog only in specific areas.
  • Custom FogVolume shader with real-time 3D noise (provided by alghost).

Language: GDScript

Renderer: Forward+

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2754

Screenshots

Screenshot