MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / iModelVertEval

Function iModelVertEval

src/SB/Core/gc/iModel.cpp:501–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
528U32 iModelVertCount(RpAtomic* model)
529{
530 return model->geometry->numVertices;
531}
532
533static inline void SkinXform(xVec3* dest, const xVec3* vert, RwMatrix* mat, const RwMatrix* skinmat,
534 const F32* wt, const U32* idx, U32 count)

Callers 2

xModelAnimCollRefreshFunction · 0.50
xParEmitterEmitEntityFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected