Lines Matching refs:vhalf
666 Vec vlight, vhalf; in SetTexGenMtx1() local
679 VECHalfAngle(&vlight, &vview, &vhalf); in SetTexGenMtx1()
689 MTXRowCol(ms, 0, 0) = vhalf.x; in SetTexGenMtx1()
690 MTXRowCol(ms, 0, 1) = vhalf.y; in SetTexGenMtx1()
691 MTXRowCol(ms, 0, 2) = vhalf.z; in SetTexGenMtx1()
719 Vec vlight, vhalf, vaxis; in SetTexGenMtx2() local
742 VECHalfAngle(&vlight, &vview, &vhalf); in SetTexGenMtx2()
744 vhalf.x = -vhalf.x; in SetTexGenMtx2()
745 vhalf.y = -vhalf.y; in SetTexGenMtx2()
746 vhalf.z = -vhalf.z; in SetTexGenMtx2()
760 VECCrossProduct(&vhalf, &vview, &vaxis); // rotation axis in SetTexGenMtx2()
761 r = acosf(VECDotProduct(&vview, &vhalf)); // rotation amounts in SetTexGenMtx2()