Fix PBRT exporter FoV aspect ratio calculation

pull/5082/head
Samuel Kogler 2023-05-03 16:46:54 +02:00
parent b8877798ed
commit f32c21e6b3
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ void PbrtExporter::WriteCamera(int i) {
// Get camera fov
float hfov = AI_RAD_TO_DEG(camera->mHorizontalFOV);
float fov = (aspect >= 1.0) ? hfov : (hfov * aspect);
float fov = (aspect >= 1.0) ? hfov : (hfov / aspect);
if (fov < 5) {
std::cerr << fov << ": suspiciously low field of view specified by camera. Setting to 45 degrees.\n";
fov = 45;