Lines Matching refs:projectionMatrix

517 … R_TransformModelToClip( const vec3_t src, const float *modelMatrix, const float *projectionMatrix,  in R_TransformModelToClip()  argument
531 eye[0] * projectionMatrix[ i + 0 * 4 ] + in R_TransformModelToClip()
532 eye[1] * projectionMatrix[ i + 1 * 4 ] + in R_TransformModelToClip()
533 eye[2] * projectionMatrix[ i + 2 * 4 ] + in R_TransformModelToClip()
534 eye[3] * projectionMatrix[ i + 3 * 4 ]; in R_TransformModelToClip()
975 dest->projectionMatrix[0] = 2 * zProj / width; in R_SetupProjection()
976 dest->projectionMatrix[4] = 0; in R_SetupProjection()
977 dest->projectionMatrix[8] = (xmax + xmin + 2 * stereoSep) / width; in R_SetupProjection()
978 dest->projectionMatrix[12] = 2 * zProj * stereoSep / width; in R_SetupProjection()
980 dest->projectionMatrix[1] = 0; in R_SetupProjection()
981 dest->projectionMatrix[5] = 2 * zProj / height; in R_SetupProjection()
982 dest->projectionMatrix[9] = ( ymax + ymin ) / height; // normally 0 in R_SetupProjection()
983 dest->projectionMatrix[13] = 0; in R_SetupProjection()
985 dest->projectionMatrix[3] = 0; in R_SetupProjection()
986 dest->projectionMatrix[7] = 0; in R_SetupProjection()
987 dest->projectionMatrix[11] = -1; in R_SetupProjection()
988 dest->projectionMatrix[15] = 0; in R_SetupProjection()
1011 dest->projectionMatrix[2] = 0; in R_SetupProjectionZ()
1012 dest->projectionMatrix[6] = 0; in R_SetupProjectionZ()
1013 dest->projectionMatrix[10] = -( zFar + zNear ) / depth; in R_SetupProjectionZ()
1014 dest->projectionMatrix[14] = -2 * zFar * zNear / depth; in R_SetupProjectionZ()
1035 q[0] = (SGN(plane2[0]) + dest->projectionMatrix[8]) / dest->projectionMatrix[0]; in R_SetupProjectionZ()
1036 q[1] = (SGN(plane2[1]) + dest->projectionMatrix[9]) / dest->projectionMatrix[5]; in R_SetupProjectionZ()
1038 q[3] = (1.0f + dest->projectionMatrix[10]) / dest->projectionMatrix[14]; in R_SetupProjectionZ()
1042 dest->projectionMatrix[2] = c[0]; in R_SetupProjectionZ()
1043 dest->projectionMatrix[6] = c[1]; in R_SetupProjectionZ()
1044 dest->projectionMatrix[10] = c[2] + 1.0f; in R_SetupProjectionZ()
1045 dest->projectionMatrix[14] = c[3]; in R_SetupProjectionZ()
1076 dest->projectionMatrix[0] = 2 / (xmax - xmin); in R_SetupProjectionOrtho()
1077 dest->projectionMatrix[4] = 0; in R_SetupProjectionOrtho()
1078 dest->projectionMatrix[8] = 0; in R_SetupProjectionOrtho()
1079 dest->projectionMatrix[12] = (xmax + xmin) / (xmax - xmin); in R_SetupProjectionOrtho()
1081 dest->projectionMatrix[1] = 0; in R_SetupProjectionOrtho()
1082 dest->projectionMatrix[5] = 2 / (ymax - ymin); in R_SetupProjectionOrtho()
1083 dest->projectionMatrix[9] = 0; in R_SetupProjectionOrtho()
1084 dest->projectionMatrix[13] = (ymax + ymin) / (ymax - ymin); in R_SetupProjectionOrtho()
1086 dest->projectionMatrix[2] = 0; in R_SetupProjectionOrtho()
1087 dest->projectionMatrix[6] = 0; in R_SetupProjectionOrtho()
1088 dest->projectionMatrix[10] = -2 / (zfar - znear); in R_SetupProjectionOrtho()
1089 dest->projectionMatrix[14] = -(zfar + znear) / (zfar - znear); in R_SetupProjectionOrtho()
1091 dest->projectionMatrix[3] = 0; in R_SetupProjectionOrtho()
1092 dest->projectionMatrix[7] = 0; in R_SetupProjectionOrtho()
1093 dest->projectionMatrix[11] = 0; in R_SetupProjectionOrtho()
1094 dest->projectionMatrix[15] = 1; in R_SetupProjectionOrtho()
1413 …R_TransformModelToClip( tess.xyz[i], tr.or.modelMatrix, tr.viewParms.projectionMatrix, eye, clip ); in SurfIsOffscreen()
2336 dest->projectionMatrix[0] = 2 / (xmax - xmin); in R_RenderPshadowMaps()
2337 dest->projectionMatrix[4] = 0; in R_RenderPshadowMaps()
2338 dest->projectionMatrix[8] = (xmax + xmin) / (xmax - xmin); in R_RenderPshadowMaps()
2339 dest->projectionMatrix[12] =0; in R_RenderPshadowMaps()
2341 dest->projectionMatrix[1] = 0; in R_RenderPshadowMaps()
2342 dest->projectionMatrix[5] = 2 / (ymax - ymin); in R_RenderPshadowMaps()
2343 dest->projectionMatrix[9] = ( ymax + ymin ) / (ymax - ymin); // normally 0 in R_RenderPshadowMaps()
2344 dest->projectionMatrix[13] = 0; in R_RenderPshadowMaps()
2346 dest->projectionMatrix[2] = 0; in R_RenderPshadowMaps()
2347 dest->projectionMatrix[6] = 0; in R_RenderPshadowMaps()
2348 dest->projectionMatrix[10] = 2 / (zfar - znear); in R_RenderPshadowMaps()
2349 dest->projectionMatrix[14] = 0; in R_RenderPshadowMaps()
2351 dest->projectionMatrix[3] = 0; in R_RenderPshadowMaps()
2352 dest->projectionMatrix[7] = 0; in R_RenderPshadowMaps()
2353 dest->projectionMatrix[11] = 0; in R_RenderPshadowMaps()
2354 dest->projectionMatrix[15] = 1; in R_RenderPshadowMaps()
2746 …Mat4Multiply(tr.viewParms.projectionMatrix, tr.viewParms.world.modelMatrix, tr.refdef.sunShadowMvp… in R_RenderSunShadowMaps()