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

Function Translate

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

Source from the content-addressed store, hash-verified

559// Cascaded-shadow kernel (pure).
560
561Mat4 Translate(const Vec3& t)
562{
563 Mat4 m = Identity();
564 m.at(0, 3) = t.x;
565 m.at(1, 3) = t.y;
566 m.at(2, 3) = t.z;
567 return m;
568}
569
570std::array<Vec3, 8> CameraFrustumCornersWorld(const Vec3& camPos, const Vec3& forward, const Vec3& right,
571 const Vec3& up, float tanHalfX, float tanHalfY, float nearD, float farD)

Callers 1

ToCameraRelativeFunction · 0.85

Calls 2

IdentityFunction · 0.85
atMethod · 0.80

Tested by

no test coverage detected