Scanline Effect

A post-process scan effect: an animated sphere mask from the player, depth-based outlines, a rim, an optional world-aligned overlay, and the original scene outside the sphere.

Material setup

Scanline material overview
Scanline material overview

The material has five parts:

1. Sphere mask: spawns an imaginary sphere at the player location. Its radius is animated so the effect grows outwards.

Sphere mask
Sphere mask

2. Outlines: generated with Scene Depth, sampled 4 times for top, bottom, left and right outlines.

Depth outlines
Depth outlines

3. Rim color: marks the edge of the sphere mask and adds a feeling of propagation.

Rim color
Rim color

4. An optional texture overlaid on the world with the World Aligned Texture node.

World aligned overlay
World aligned overlay

5. The main scene (Post Process Input 0) reveals the original scene outside the sphere.

Main scene
Main scene