mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-06 11:29:55 -05:00
Solves issue for incorrect FOV (Planar Projection)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user