Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
190 B
1
Indexable
Never
// 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