diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-20 13:00:49 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-20 15:08:43 +0000 |
commit | d1d1a4e349f18cd36406f75170dad87fbad2722a (patch) | |
tree | d950e7462e6718360c8a048e87ca7b14fe0258c1 /gfx/gl/shaders/networkCurve.gs | |
parent | Implement complete network straight part shader (diff) | |
download | ilt-d1d1a4e349f18cd36406f75170dad87fbad2722a.tar.bz2 ilt-d1d1a4e349f18cd36406f75170dad87fbad2722a.tar.xz ilt-d1d1a4e349f18cd36406f75170dad87fbad2722a.zip |
Common code between straight/curve network geometry shaders
Diffstat (limited to 'gfx/gl/shaders/networkCurve.gs')
-rw-r--r-- | gfx/gl/shaders/networkCurve.gs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gfx/gl/shaders/networkCurve.gs b/gfx/gl/shaders/networkCurve.gs index cf70b6e..c504df3 100644 --- a/gfx/gl/shaders/networkCurve.gs +++ b/gfx/gl/shaders/networkCurve.gs @@ -1,9 +1,19 @@ #version 330 core +flat in ivec3 apos[]; +flat in ivec3 bpos[]; +flat in ivec3 cpos[]; +flat in float reps[]; + layout(points) in; layout(triangle_strip, max_vertices = 255) out; +const mat2 rot = mat2(1); + +include(`networkCommon.glsl') + void main() { + doSeg(0, apos[0], bpos[0], 0.f, reps[0], rot, rot); } |