Solves issue for incorrect FOV (Planar Projection)

This commit is contained in:
Arohdin
2024-02-13 14:49:46 +01:00
parent adad4ab0ff
commit de5a4352ec
@@ -723,10 +723,10 @@ sgct::config::Projections WindowControl::generateProjectionInformation() const {
}
case ProjectionIndices::Planar:
{
double fovH = _planar.fovH->text().toFloat();
double fovH = _planar.fovH->value();
fovH = std::clamp(fovH, FovEpsilon, 180.0 - FovEpsilon);
double fovV = _planar.fovV->text().toFloat();
double fovV = _planar.fovV->value();
fovV = std::clamp(fovV, FovEpsilon, 180.0 - FovEpsilon);
// The negative values for left & down are due to SGCT's convention