Custom Lens Flares Material

Average Rating:  
X Rating Failed

This content is designed to help simulate custom lens flare effects like simple flares around light sources, sun, or anamorphic lens flares and correctly handle cases when objects are overlapped.

  • Supported Platforms
  • Supported Engine Versions



This realization of the lens flares uses a material (shader) to control lens flares opacity and particle system to render the effect. The material compares values stored in depth buffer with distance to camera for a few points on a screen. In simplest case, it compares depth value for center of a particle with distance from the particle to camera.

You can read more here:

Technical Details

- Correctly handles overlapping
- Works for all cameras and viewports, independently of FOV and aspect ratio
- Has options to control intensity in relation to size of overlapping area
- Works with split screen
- Doesn't implement any new UObjects in C++
- Runs on GPU side only

The package contains:
- A blueprint to create a light source with attached effect
- Lens Flare master material with various instances and flare texture
- Particle system that can be used as template to customized lens flare effects
- Demo level



Previous Next
  • Edit
  • Preview
  • Help
Login to comment
X Report this Comment
X Attention

X Edit this Comment
  • Edit
  • Preview
  • Help
X Remove this Comment

Are you sure you want to remove this comment?

X Attention