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.vs | |
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.vs')
-rw-r--r-- | gfx/gl/shaders/networkCurve.vs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gfx/gl/shaders/networkCurve.vs b/gfx/gl/shaders/networkCurve.vs index b4324d6..d083765 100644 --- a/gfx/gl/shaders/networkCurve.vs +++ b/gfx/gl/shaders/networkCurve.vs @@ -5,16 +5,16 @@ layout(location = 1) in ivec3 v_bpos; layout(location = 2) in ivec3 v_centre; layout(location = 3) in float v_reps; -uniform mat4 viewProjection; - flat out ivec3 apos; flat out ivec3 bpos; -flat out mat2 rot; +flat out ivec3 cpos; flat out float reps; -flat out float dist; void main() { - dist = viewProjection[0][0]; + apos = v_apos; + bpos = v_bpos; + cpos = v_centre; + reps = v_reps; } |