Would it be possible to create addon that gets field of view value from projection matrix?
It would be useful for RTGI and PerfectPerspective, to expose FOV as a global variable.
Here, on DirectX website, projection matrix components are explained:
docs.microsoft.com/en-us/windows/win32/d...projection-transform
From that, an FOV angle could be retrieved using:
float getFov(float w) { return 2f*atan(1f/w); }
Is it possible?