Wiki 9Minecraft Wiki 9Minecraft
Depth Style Shaders Wiki › Guides › Use Depth Maps for Custom Depth-of-Field in Editing

Use Depth Maps for Custom Depth-of-Field in Editing

Preparing Your Depth Map Asset

Capture your scene with Depth Style Shaders enabled and save the screenshot. This grayscale image is your depth map—pure distance information encoded as brightness values.

Importing Into Your Editor

Load your depth map into your video editing or compositing software as a separate layer or as a matte/mask channel. Most professional editors (and many free ones) support using grayscale images as depth data.

Applying Depth-of-Field Effects

Use the depth map to:

  • Create a focus layer that keeps certain distances sharp while blurring others
  • Build animated focus pulls by keyframing which depth values stay in focus
  • Generate realistic lens blur that follows actual scene geometry
  • Separate subjects by depth for selective color or effect adjustments

Fine-Tuning Results

Adjust the blur amount and falloff curve to match your desired effect. The depth map's clear gradients mean your depth-of-field will align perfectly with your actual scene geometry—no manual masking required.

This workflow is faster and more accurate than guessing focus distances during post-production.