Torque 3D 3.7
MathUtils::getZBiasProjectionMatrix Function
void getZBiasProjectionMatrix(F32 bias, const Frustum & frustum, MatrixF * outMat, bool rotate = true);

Generates a projection matrix with the near plane moved forward by the bias amount. This function is a helper primarily for working around z-fighting issues. 

@param bias The amount to move the near plane forward. @param frustum The frustum to generate the new projection matrix from. @param outMat The resulting z-biased projection matrix. Note: It must be initialized before the call. @param rotate Optional parameter specifying whether to rotate the projection matrix similarly to GFXDevice


Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!