You are viewing development documentation

Open Live Docs

Version 6.4.0 is out!Hotspotting, in-shader Tonemapping, vertex lights, and bug fixes!

Get it now See What's New
Logo

Modules

Depth Fade Module

Fade objects in and out based on depth information


If you want to fade out some obejcts when they are close to a surface behind them - you can use the Depth Fade module to achieve that. It is set up to mimic unity's Soft Particles mode.

Depth Fade InspectorDepth Fade Inspector

Compatibility

✨ This module is compatible with all lighting models

Settings

  • Enable Depth Fade: Enables the effect
  • Near Distance: Controls the distance at which the object will start fading out
  • Far Distance: Controls the distance at which the object will be fully faded out
  • Alpha Premultiply: Multiplies the albedo by the alpha, which can be useful for things like particle effects or any other additive shaders

Requires Depth Pass

This effect requires a depth pass in the world. The easiest way to achieve one is to create a light with settings like this:

  • Intensity 0.001
  • Shadow Type: Hard Shadows
  • Strength: 0.001
  • Culling Mask: Only Stereo Left
Previous
Configurable Shaders