diff options
author | Sven Gothel <[email protected]> | 2023-08-27 13:07:26 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-08-27 13:10:17 +0200 |
commit | 7cba3e8e8bc0f224cc4be8bd1290068ed5429365 (patch) | |
tree | 7c43c85af84d726a2bd040bd3e7fe8b961dfcd6d /src/graphui/classes/com/jogamp | |
parent | 4448010d8d787c73d48f54b296c3a8c2499aeaa0 (diff) |
GraphUI: Button: Reduce default DEFAULT_LABEL_ZOFFSET from 0.005f -> 0.0001f, have to check if working on all platforms (TODO)
Otherwise, we have to resolve the 'one Region' for the Button (backgroung shape + text on top)
implementation with two OutlineShapes.
As of now, we use the z-offset of the text above background to avoid z-fighting.
This is like a manual application of glPolygonOffset(..) directly on the produced vertices.
Diffstat (limited to 'src/graphui/classes/com/jogamp')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java index 5fe99c5c9..9ce04cb47 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java @@ -60,7 +60,7 @@ public class Button extends BaseButton { /** {@value} */ public static final float DEFAULT_SPACING_Y = 0.42f; - private static final float DEFAULT_LABEL_ZOFFSET = 0.005f; // 0.05f; + private static final float DEFAULT_LABEL_ZOFFSET = 0.0001f; // 0.05f; private float labelZOffset; private final Label0 label; |