Untitled
unknown
plain_text
2 years ago
190 B
9
Indexable
// Return: depth [0, 1] -> Real depth
float getABSDepth( in const float normalizedDepth ) {
return ( NearFarPlane.x + (NearFarPlane.y - NearFarPlane.x) * (1.0 - normalizedDepth) );
}Editor is loading...
Leave a Comment