Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
244
Mat4 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
250
OrthoFit FitOrtho(const Mat4& lightView, const Vec3* pts, int count)
251
{
Callers
7
ComputeCascadeLightVP
Function · 0.85
CascadeLightVPWorld
Function · 0.85
CascadeLightVPStable
Function · 0.85
OmniSphereLightVP
Function · 0.85
InspectShadow
Function · 0.85
TriShadowDepthProbe
Function · 0.85
test_shadowmap_math.cpp
File · 0.85
Calls
2
Normalize
Function · 0.85
LookAt
Function · 0.85
Tested by
2
InspectShadow
Function · 0.68
TriShadowDepthProbe
Function · 0.68