MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ToCameraRelative

Function ToCameraRelative

engine/Poseidon/Graphics/Shadow/ShadowMath.cpp:599–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599Mat4 ToCameraRelative(const Mat4& worldLightVP, const Vec3& camPos)
600{
601 return Mul(worldLightVP, Translate(camPos));
602}
603
604Mat4 CascadeLightVPStable(const std::array<Vec3, 8>& corners, float t0, float t1, const Vec3& sunDir, const Vec3& up,
605 int resolution, float zPad, const Vec3& camPos)

Callers 1

Calls 2

MulFunction · 0.85
TranslateFunction · 0.85

Tested by

no test coverage detected