diff options
author | Sven Göthel <[email protected]> | 2024-01-09 03:02:57 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-09 03:02:57 +0100 |
commit | f836fbd9201034010ecbf591348433f23920f527 (patch) | |
tree | b241a857c3d7d20d9840c953b19d49a194d79bd9 /src/jogl/classes/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java | |
parent | c87e89959e40ee8411cccc16fe0a5708f54a6c9f (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/jogamp/graph/curve/opengl/VBORegion2PVBAAES2.java')
0 files changed, 0 insertions, 0 deletions