MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / BuildMatrix

Function BuildMatrix

ogsr_engine/Layers/xrRender/SkeletonCustom.cpp:633–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633void BuildMatrix(Fmatrix& mView, const float invsz, const Fvector norm, const Fvector& from)
634{
635 // build projection
636 Fmatrix mScale;
637 Fvector at, up, right, y;
638 at.sub(from, norm);
639 y.set(0, 1, 0);
640 if (_abs(norm.y) > .99f)
641 y.set(1, 0, 0);
642 right.crossproduct(y, norm);
643 up.crossproduct(norm, right);
644 mView.build_camera(from, at, up);
645 mScale.scale(invsz, invsz, invsz);
646 mView.mulA_43(mScale);
647}
648void CKinematics::EnumBoneVertices(SEnumVerticesCallback& C, const u16 bone_id)
649{
650 for (u32 i = 0; i < children.size(); i++)

Callers 2

add_wallmark_internalMethod · 0.85

Calls 7

build_cameraMethod · 0.80
mulA_43Method · 0.80
_absFunction · 0.50
subMethod · 0.45
setMethod · 0.45
crossproductMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected