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

Function LightView

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

Source from the content-addressed store, hash-verified

242}
243
244Mat4 LightView(const Vec3& sunDir, const Vec3& up)
245{
246 Vec3 dir = Normalize(sunDir);
247 return LookAt({0.0f, 0.0f, 0.0f}, dir, up);
248}
249
250OrthoFit FitOrtho(const Mat4& lightView, const Vec3* pts, int count)
251{

Callers 7

ComputeCascadeLightVPFunction · 0.85
CascadeLightVPWorldFunction · 0.85
CascadeLightVPStableFunction · 0.85
OmniSphereLightVPFunction · 0.85
InspectShadowFunction · 0.85
TriShadowDepthProbeFunction · 0.85

Calls 2

NormalizeFunction · 0.85
LookAtFunction · 0.85

Tested by 2

InspectShadowFunction · 0.68
TriShadowDepthProbeFunction · 0.68