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/shader/attributes.glsl | |
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/shader/attributes.glsl')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl b/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl index b8c68a924..6fc3b4201 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl +++ b/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl @@ -1,3 +1,4 @@ +// Copyright 2010-2024 JogAmp Community. All rights reserved. #ifndef attributes_glsl #define attributes_glsl |