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

Function SliceFrustum

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

Source from the content-addressed store, hash-verified

231}
232
233std::array<Vec3, 8> SliceFrustum(const std::array<Vec3, 8>& corners, float t0, float t1)
234{
235 std::array<Vec3, 8> out;
236 for (int i = 0; i < 4; i++)
237 {
238 out[i] = Lerp(corners[i], corners[i + 4], t0);
239 out[i + 4] = Lerp(corners[i], corners[i + 4], t1);
240 }
241 return out;
242}
243
244Mat4 LightView(const Vec3& sunDir, const Vec3& up)
245{

Callers 4

ComputeCascadeLightVPFunction · 0.85
CascadeLightVPWorldFunction · 0.85
CascadeLightVPStableFunction · 0.85

Calls 1

LerpFunction · 0.85

Tested by

no test coverage detected