Uniform arrays with GLSL POP

Is there an option to pass a CHOP as a uniform array rather than a samplerBuffer in the GLSL POP?
In the GLSL TOP you could choose but the GLSL POP doesn’t seem to have that option.
In RayTK parameters are passed in arrays and it generates aliases like #define sphereSdf_radius sphereSdf_params[3].x. Those aliases get referenced in lots of places in the generated code. I’m not sure what the implications would be of having tons of samplerBuffer lookup calls would be.

I was just about to ask the same thing! haha
If i declare the array within the GLSL code, I am able to set it as a uniform vec3, but passing it through the parameter window sets it as a samplerBuffer..

Is there another way around this or an easier way to reference the array externally? (or is texelFetch the only way?)
GLSLPOP_arrays.1.toe (4.6 KB)

Hello,

Indeed all the arrays are declared as samplerBuffer in GLSL POPs currently, I’ll make a note to add support for uniform arrays, similar to TOPs and MATs.

Cheers,
Vincent

1 Like