aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-09 03:02:57 +0100
committerSven Göthel <[email protected]>2024-01-09 03:02:57 +0100
commitf836fbd9201034010ecbf591348433f23920f527 (patch)
treeb241a857c3d7d20d9840c953b19d49a194d79bd9 /src/jogl/classes/com/jogamp/graph
parentc87e89959e40ee8411cccc16fe0a5708f54a6c9f (diff)
Graph Clipping: GLSL: Add `USE_AABBOX_CLIPPING`, i.e. clipping via AABBox min/max vec3 as convenient using Graph/GraphUI produced AABBox
USE_AABBOX_CLIPPING - Conditional compilation w/ macro 'USE_AABBOX_CLIPPING' - gcv_ClipBBoxCoord smooth varying setup in vertex shader - fragment shader clips via branch if( is_inside(gcv_ClipBBoxCoord, gcu_ClipBBox[0], gcu_ClipBBox[1]) < 0.5 ) { CLIP } - clipping via discard or alpha=0 in case of buggy-discard. Other optimization: - Drop gcv_ColorTexExt, fragment-shader uses gcu_ColorTexBBox[2] directly (flat) - Simplified gcv_ColorTexCoord smooth varying equation in vertex shader.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
0 files changed, 0 insertions, 0 deletions