• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Shaders Creating an Array in Shader

S

Sir_Rysik

Guest
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