Hello.
I'm making example filter with custom fragment shader. This is what I have in terms of shader code so far:
//fragShader
struct SomeInfo
{
vec4 color;
};
uniform SomeInfo c;
void main()
{
gl_FragColor = c.color;
}
The idea is to (eventually) make c into an array of Infos, which would be then operated on by the shader.
What I'm struggling with is the definition of filter:
how do I declare the uniform to be of type SomeInfo in Js code?
I assume in pla