Shaders Creating an Array in Shader

Sir_Rysik

Member
Hey everyone!

Hoping to get some help in living creating a vec3 array in a fragment shader. As far as I can tell from what I've researched I am writing this correctly yet GM is throwing me a unclear error. Here's what I have:

GML:
vec3 Example[3] = vec3[3](
   vec3(100.0, 100.0, 100.0),
   vec3(100.0, 100.0, 100.0),
   vec3(100.0, 100.0, 100.0)
);
Thanks for any help in advance!
 
Top