diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-24 00:46:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-24 00:46:57 +0000 |
commit | 17aa6053e641d006649f94bb60a834ce945f351e (patch) | |
tree | b76f6fc642b749ee69d4be4b2e3f60e80c0ed7bc /gfx/gl/shaders/networkCurve.vs | |
parent | Add traits wrapper for setting uniforms (diff) | |
parent | Fix network population of position in gBuffer (diff) | |
download | ilt-17aa6053e641d006649f94bb60a834ce945f351e.tar.bz2 ilt-17aa6053e641d006649f94bb60a834ce945f351e.tar.xz ilt-17aa6053e641d006649f94bb60a834ce945f351e.zip |
Merge remote-tracking branch 'origin/instanced-networks'
Diffstat (limited to 'gfx/gl/shaders/networkCurve.vs')
-rw-r--r-- | gfx/gl/shaders/networkCurve.vs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gfx/gl/shaders/networkCurve.vs b/gfx/gl/shaders/networkCurve.vs new file mode 100644 index 0000000..f51bb87 --- /dev/null +++ b/gfx/gl/shaders/networkCurve.vs @@ -0,0 +1,29 @@ +#version 330 core + +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; +layout(location = 6) in float v_radius; + +flat out ivec3 apos; +flat out ivec3 bpos; +flat out ivec3 cpos; +flat out float reps; +flat out float aangle; +flat out float bangle; +flat out float radius; + +void +main() +{ + apos = v_apos; + bpos = v_bpos; + cpos = v_centre; + reps = v_reps; + aangle = v_aangle; + bangle = v_bangle; + radius = v_radius; +} |