summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/networkCurve.vs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-20 23:27:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-20 23:27:01 +0000
commit35a9f035963458156c719dc16f4073b8244d66eb (patch)
tree4a96298e2be58dd4d55fafb612d1bfdd855091f5 /gfx/gl/shaders/networkCurve.vs
parentImplement basic network curve part shader (diff)
downloadilt-35a9f035963458156c719dc16f4073b8244d66eb.tar.bz2
ilt-35a9f035963458156c719dc16f4073b8244d66eb.tar.xz
ilt-35a9f035963458156c719dc16f4073b8244d66eb.zip
Pass curve link radius, no recalculate, its constant
Diffstat (limited to 'gfx/gl/shaders/networkCurve.vs')
-rw-r--r--gfx/gl/shaders/networkCurve.vs3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/gl/shaders/networkCurve.vs b/gfx/gl/shaders/networkCurve.vs
index 6c56e93..f51bb87 100644
--- a/gfx/gl/shaders/networkCurve.vs
+++ b/gfx/gl/shaders/networkCurve.vs
@@ -6,6 +6,7 @@ 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;
+layout(location = 6) in float v_radius;
flat out ivec3 apos;
flat out ivec3 bpos;
@@ -13,6 +14,7 @@ flat out ivec3 cpos;
flat out float reps;
flat out float aangle;
flat out float bangle;
+flat out float radius;
void
main()
@@ -23,4 +25,5 @@ main()
reps = v_reps;
aangle = v_aangle;
bangle = v_bangle;
+ radius = v_radius;
}