Shadershow::script



The scripting syntax resembles that of JS/GLSL/C/Java but the interpretation is not too closely related to any of them .

The formal syntax is:
So the following expressions are valid: Many expressions (and functions) supports lists as input and automatically "vectorizes" the calculations like GLSL does. So if you have the function "d=lin([0,1],[20,30])" then d will be an list where the first value is interpolated between 0 and 20 and the second value interpolated between 1 and 30.

The implemented numeric operators are + - * / % and operates on numbers or lists.
built in functions consists right now only of "lin" that linearly interpolates between the first and second argument.