diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-20 20:10:12 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-20 20:10:12 +0000 |
commit | a19011b730ac6d770e3b42cde3a10961495a417d (patch) | |
tree | a3d1e4de3c709167d226725ddd768a9ecd662ff5 /gfx/gl/shaders/networkCurve.vs | |
parent | Common code between straight/curve network geometry shaders (diff) | |
download | ilt-a19011b730ac6d770e3b42cde3a10961495a417d.tar.bz2 ilt-a19011b730ac6d770e3b42cde3a10961495a417d.tar.xz ilt-a19011b730ac6d770e3b42cde3a10961495a417d.zip |
Implement basic network curve part shader
Diffstat (limited to 'gfx/gl/shaders/networkCurve.vs')
-rw-r--r-- | gfx/gl/shaders/networkCurve.vs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/gl/shaders/networkCurve.vs b/gfx/gl/shaders/networkCurve.vs index d083765..6c56e93 100644 --- a/gfx/gl/shaders/networkCurve.vs +++ b/gfx/gl/shaders/networkCurve.vs @@ -4,11 +4,15 @@ layout(location = 0) in ivec3 v_apos; layout(location = 1) in ivec3 v_bpos; layout(location = 2) in ivec3 v_centre; layout(location = 3) in float v_reps; +layout(location = 4) in float v_aangle; +layout(location = 5) in float v_bangle; flat out ivec3 apos; flat out ivec3 bpos; flat out ivec3 cpos; flat out float reps; +flat out float aangle; +flat out float bangle; void main() @@ -17,4 +21,6 @@ main() bpos = v_bpos; cpos = v_centre; reps = v_reps; + aangle = v_aangle; + bangle = v_bangle; } |