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

Function ShadowUVToWorld

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

Source from the content-addressed store, hash-verified

366}
367
368Vec3 ShadowUVToWorld(const Mat4& invLightVP, float u, float v, float depth)
369{
370 return TransformPoint(invLightVP, {u * 2.0f - 1.0f, v * 2.0f - 1.0f, depth});
371}
372
373float SampleShadow(const DepthMap& map, const Mat4& lightVP, const Vec3& worldP, float depthBias, int pcfRadius)
374{

Callers 1

Calls 1

TransformPointFunction · 0.85

Tested by

no test coverage detected