aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-02 20:24:23 +0200
committerSven Gothel <[email protected]>2023-09-02 20:24:23 +0200
commit71576e94af890e2a4a98225ed258445ba7db0f26 (patch)
tree2e07d6a18f7394d394459a98414ad8c16984d0ed /src/graphui
parentf6dd8e9562d7e0bbf681c268f40ff4c819057915 (diff)
PMVMatrix.gluPerspective(): Redfine angle in radians instead of degrees ** API Change **
Since this is an extra implementation of PMVMatrix and not of GLMatrixFunc, we shall use the default ISO dimension avoiding conversion. This alsi redefined Graph's RegionRenderer.reshapePerspective() angle definition from degrees to radians
Diffstat (limited to 'src/graphui')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Scene.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/Scene.java
index 6abbc7f08..39bf12140 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Scene.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Scene.java
@@ -99,8 +99,8 @@ import jogamp.graph.ui.TreeTool;
public final class Scene implements Container, GLEventListener {
/** Default scene distance on z-axis to projection is -1/5f. */
public static final float DEFAULT_SCENE_DIST = -1/5f;
- /** Default projection angle in degrees value is 45.0. */
- public static final float DEFAULT_ANGLE = 45.0f;
+ /** Default projection angle in radians is PI/4, i.e. 45.0 degrees. */
+ public static final float DEFAULT_ANGLE = FloatUtil.QUARTER_PI;
/** Default projection z-near value is 0.1. */
public static final float DEFAULT_ZNEAR = 0.1f;
/** Default projection z-far value is 7000. */