Blender V5.3
reverse_z Namespace Reference

Functions

float4 transform (float4 hs_position)
template<typename T>
T read (T depth_buffer_value)
template float read< float > (float)
template float4 read< float4 > (float4)

Detailed Description

Reverse-Z utils functions.

We only modify the depth buffer content so we need to change the vertex Z position and modify every depth buffer read. This keeps the projection matrices the same as the rest of blender.

Function Documentation

◆ read()

◆ read< float >()

template float reverse_z::read< float > ( float )

References read().

◆ read< float4 >()

References read().

◆ transform()