https://github.com/bauxitedev/volumetric-fog-demo
Volumetric fog in Godot using particles.
https://github.com/bauxitedev/volumetric-fog-demo
effect godot-engine graphics-programming volumetric-lighting
Last synced: about 2 months ago
JSON representation
Volumetric fog in Godot using particles.
- Host: GitHub
- URL: https://github.com/bauxitedev/volumetric-fog-demo
- Owner: Bauxitedev
- License: mit
- Created: 2017-09-08T11:19:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-21T17:24:22.000Z (over 6 years ago)
- Last Synced: 2023-03-03T14:52:07.531Z (about 2 years ago)
- Topics: effect, godot-engine, graphics-programming, volumetric-lighting
- Language: GDScript
- Size: 387 KB
- Stars: 47
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Volumetric Fog Demo
Volumetric fog in Godot using particles.Usually, volumetric fog is done as a post processing effect, but here's an example on how to do it with particles.
This has the following advantages:
- very easy to implement, automatically works with GI if you place a GIProbe around it
- can easily change the texture of the fog
- can easily animate the fog, can e.g. apply wind, attractors, and random movementBut it has disadvantages as well:
- it's very slow
- because the particles are billboards, rotating the camera results in the fog rotating as well, which looks weird
- only works in a small region of space, unless you parent the fog emitter to the camera (which only looks nice if the camera moves slowly)
- doesn't work if light is pointing towards the camera (since the particle normal points towards the camera as well)
- probably looks bad if the ambient/background color isn't black[Here's a video of it in action.](https://www.youtube.com/watch?v=_OCMemTM0Yc)
----
Made with Godot 3.0 alpha1.