| 499 | worldsph.center.y * frustumPlane->plane.normal.y + |
| 500 | worldsph.center.z * frustumPlane->plane.normal.z; |
| 501 | nDot -= frustumPlane->plane.distance; |
| 502 | |
| 503 | sDot = shadowVec->x * frustumPlane->plane.normal.x + |
| 504 | shadowVec->y * frustumPlane->plane.normal.y + |
| 505 | shadowVec->z * frustumPlane->plane.normal.z; |
| 506 | sDot -= frustumPlane->plane.distance; |
| 507 | |
| 508 | if (nDot > worldsph.radius && sDot > worldsph.radius) |
| 509 | { |
| 510 | *shadowOutside = 1; |
| 511 | return 1; |
| 512 | } |
| 513 | |
| 514 | frustumPlane++; |
| 515 | } |
| 516 | |
| 517 | *shadowOutside = 0; |
| 518 | return 1; |
| 519 | } |
| 520 | |
| 521 | frustumPlane++; |
| 522 | } |
| 523 | |
| 524 | *shadowOutside = 0; |
| 525 | return 0; |
| 526 | } |
| 527 | |
| 528 | U32 iModelVertCount(RpAtomic* model) |
| 529 | { |
| 530 | return model->geometry->numVertices; |
| 531 | } |
| 532 | |
| 533 | static inline void SkinXform(xVec3* dest, const xVec3* vert, RwMatrix* mat, const RwMatrix* skinmat, |
| 534 | const F32* wt, const U32* idx, U32 count) |
no outgoing calls
no test coverage detected