Untitled
// Return: depth [0, 1] -> Real depth float getABSDepth( in const float normalizedDepth ) { return ( NearFarPlane.x + (NearFarPlane.y - NearFarPlane.x) * (1.0 - normalizedDepth) ); }
Leave a Comment
// Return: depth [0, 1] -> Real depth float getABSDepth( in const float normalizedDepth ) { return ( NearFarPlane.x + (NearFarPlane.y - NearFarPlane.x) * (1.0 - normalizedDepth) ); }