Lines Matching refs:rhw
3713 /* If the destination vertex buffer has D3DFVF_XYZ position(non-rhw), native d3d writes RHW position, where the RHW
3794 float x, y, z, rhw;
3801 rhw = (p[0] * mat.u.s._14) + (p[1] * mat.u.s._24) + (p[2] * mat.u.s._34) + (1.0f * mat.u.s._44);
3803 TRACE("x=%f y=%f z=%f rhw=%f\n", x, y, z, rhw);
3812 * -rhw < x <= rhw
3813 * -rhw < y <= rhw
3814 * 0 < z <= rhw
3815 * 0 < rhw ( Not in d3d7, but tested in d3d7)
3823 ( (-rhw -eps < x) && (-rhw -eps < y) && ( -eps < z) &&
3824 (x <= rhw + eps) && (y <= rhw + eps ) && (z <= rhw + eps) &&
3825 ( rhw > eps ) ) ) {
3828 * 1) The values are divided by rhw
3836 * 7) rhw = 1 / rhw Reciprocal of Homogeneous W....
3842 x /= rhw;
3843 y /= rhw;
3844 z /= rhw;
3856 rhw = 1 / rhw;
3863 x += rhw;
3864 y += rhw;
3875 TRACE("Writing (%f %f %f) %f\n", x, y, z, rhw);
3881 ( (float *) dest_ptr)[3] = rhw; /* SIC, see ddraw test! */
3890 float w = 1 / rhw;