Blender V5.3
eevee::hiz Namespace Reference

Classes

struct  Update

Functions

void update_main (Update &srt, const uint3 local_id, const uint3 group_id)

Detailed Description

Shader that down-sample depth buffer, creating a Hierarchical-Z buffer. Saves max value of each 2x2 texel in the mipmap above the one we are rendering to. Adapted from http://rastergrid.com/blog/2010/10/hierarchical-z-map-based-occlusion-culling/

Major simplification has been made since we pad the buffer to always be bigger than input to avoid mipmapping misalignment.

Start by copying the base level by quad loading the depth. Then each thread compute it's local depth for level 1. After that we use shared variables to do inter thread communication and downsample to max level.

Function Documentation

◆ update_main()