Untitled

Anonymous
plain_text
08/11/2024 12:30 AM
256 B
18
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