Skip to content

A powerful volumetric light plugin based on post-processing in Unity3D

Notifications You must be signed in to change notification settings

phields/Unity-Volumetric-Light

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity Volumetric Light

demo

Features:

  • Volumetric light in current real-time rendering could be expensive in PC and PS4, so we use downsample and jitter to optimize the performance.
  • Native directional shadowmap supported.
  • Cascade Directional Shadow supported.
  • Mie Scattering supported.
  • Height Fog Supported.

Tutorial:

  • Add "VolumetricLightRenderer.cs" on scene render camera.
  • Choose downsample level in "VolumetricLightRenderer.cs", for instance: x2 is half resolution, x3 is one third resolution and x4 is one quater resolution. The less resolution will cause better performance and worse quality.
  • Add "VolumetricLight.cs" on the directional light.
  • Enable "Hard Shadow" or "Soft Shadow" to let volumetric light component use shadowmap.

About

A powerful volumetric light plugin based on post-processing in Unity3D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ShaderLab 37.9%
  • HLSL 35.2%
  • C# 26.9%