Load Chop to GLSL Uniform Array

I have a Chop with some curve with 100 samples and I would like to use it in my glsl pixel shader as a float uniform array. What is the proper way to do it? Has somone a example file?

( Alternatively, I could make a ChopToTop, but I guess this is not the proper way…)

hey @firepille , welcome to the forum.

Here 's an example.
GLSL_uniform_array_from_CHOP.tox (910 Bytes)

In this example the CHOP has 100 samples so you create the uniform array as
uniform float uRed[100];

Okay, that’s simple! Thank you @nettoyeur !