Ad

VolumetricLights: Ray marching for volumetric fog in Unity

VolumetricLights implements volumetric fog effects for Unity lights using ray marching. It supports point, spot, and directional lights with various parameters for customization. Ideal for adding realistic atmospheric effects to scenes.
Screenshot of SlightlyMad/VolumetricLights homepage

VolumetricLights implements volumetric fog effects by performing ray marching within the volume of lights in Unity. This technique, inspired by methods used in games like Killzone, creates realistic atmospheric effects. It is designed to enhance the visual depth and realism of Unity scenes by simulating light scattering within a volume.

This project enables volumetric fog effects for multiple light types (point, spot, directional) with adjustable parameters. Key features include volumetric shadows and light cookies, plus integrated volumetric noise. The design utilizes a straightforward ray marching approach combined with post-processing blur for improved quality.

  • Volumetric Fog: Supports multiple lights (point, spot, directional) with customizable scattering and extinction coefficients.
  • Volumetric Shadows: Produces realistic shadows affected by the volumetric fog.
  • Volumetric Noise: Employs animated 3D textures to create dynamic and visually interesting fog.
  • Performance Options: Offers different rendering resolutions for a balance between quality and performance.
  • Light Control: Allows adjustments to light parameters like scattering, extinction, and skybox effects.

The project is a finished, working implementation demonstrating volumetric lighting techniques. While tested on Unity 5.3-5.5, it has several known limitations and areas for optimization. It's a solid foundation but not production-ready without further refinement and addressing the identified issues.

VolumetricLights provides Unity developers with a tool to create visually compelling volumetric fog effects. It's suitable for hobby projects or prototyping scenarios where realistic atmospheric lighting is desired. The project offers a good starting point but requires further optimization and refinement for professional production use.

Languages:
Summarize:
Share:
Stars
2,111
Forks
304
Issues
27
Created
10 years ago
Commit
7 years ago
License
BSD-3-CLAUSE
Archived
No
Updated 16 days ago

Similar Repositories