Poons
09-19-2005, 05:45 AM
i have a (maybe not so advanced) problem with glDepthBoundsExt.
when using glDepthBoundsExt i have to pass values between [0,1]. in my implementation i calculate the intersection point of a frustum plane with a straight line (defined by the light source and a vertex from the object).
how can i transform those z-values to the range [0,1]?
thanks!
when using glDepthBoundsExt i have to pass values between [0,1]. in my implementation i calculate the intersection point of a frustum plane with a straight line (defined by the light source and a vertex from the object).
how can i transform those z-values to the range [0,1]?
thanks!