Irbis This one is simple than other;
Note: For IOS ; it's important to initialize variables correctly, and right code;
For example ; for last line this work too : gl_FragColor = vec4(color);
Very interesting! Both codes, when put one next to another, doesn't look that much different.
All the difference I can spot are syntax/naming and that, in C2 version, you just have declare the variables and parameters at the start. Am I correct or missing something?
Out of pure curiosity - would it be possible to create a GLSL->C2 code converter/translator?