MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / AngleBetween

Function AngleBetween

SampleFramework12/v1.00/Graphics/Skybox.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32static const float CosPhysicalSunSize = std::cos(PhysicalSunSize);
33
34static float AngleBetween(const Float3& dir0, const Float3& dir1)
35{
36 return std::acos(std::max(Float3::Dot(dir0, dir1), 0.00001f));
37}
38
39// Returns the result of performing a irradiance integral over the portion
40// of the hemisphere covered by a region with angular radius = theta

Callers 2

InitMethod · 0.85
SampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected