diff --git a/ssao.cpp b/ssao.cpp index a0140c2..9db1371 100644 --- a/ssao.cpp +++ b/ssao.cpp @@ -735,7 +735,7 @@ void Sample::prepareHbaoData(const Projection& projection, int width, int height } else { - projScale = float(height) / (tanf(projection.fov * 0.5f) * 2.0f); + projScale = float(height) / (tanf(projection.fov * 0.5f * nv_to_rad) * 2.0f); } // radius