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

Function TransformPoint

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

Source from the content-addressed store, hash-verified

138}
139
140Vec3 TransformPoint(const Mat4& a, const Vec3& p)
141{
142 Vec4 r = Transform(a, {p.x, p.y, p.z, 1.0f});
143 float w = (r.w != 0.0f) ? r.w : 1.0f;
144 return {r.x / w, r.y / w, r.z / w};
145}
146
147Mat4 LookAt(const Vec3& eye, const Vec3& center, const Vec3& up)
148{

Callers 9

AnimatePointMethod · 0.85
FrustumCornersWSFunction · 0.85
FitOrthoFunction · 0.85
ShadowUVToWorldFunction · 0.85
FitOrthoSphereFunction · 0.85
CascadeLightVPStableFunction · 0.85
OmniSphereLightVPFunction · 0.85
InCascadeFunction · 0.85

Calls 1

TransformFunction · 0.85

Tested by 1

InCascadeFunction · 0.68