Colour Circle by Size - GL Shader

Hi all,

I am trying to use GL shader and colour the circle by its size. I need to use GL shader as I am using custom thin line weights.

Best,

grasss.gh (19.3 KB)

Hey Tom,

Fancy seeing you here :grin: - well I’m no GL expert but I noticed you had a missing line of code for accessing the input colours and it doesn’t look like the GL shader applies longest list logic by itself so you need to duplicate the number of colours manually

And replace your line 4 with:

layout(location = 1) in vec4 vcolor;

instead of

uniform vec4 vcolor;

Good luck,

Sash

haha, thanks Sash! My user name isn’t so conspicuous.

Enjoy your holidays.

1 Like