The Script layer enables the direct writing of GLSL, with some additional variables and functions to simplify the process.
This enables you to create your own custom GPU modifiers.
Selecting a Script layer from the nxQuestion list will open the script editor.
This will contain the simple default script.
The Script object below sets the particle color to yellow if the age is greater than 1 second.
Script editor containing the default script.
The script editor features simple editing (with undo and clipboard) and syntax highlighting.
It has the common key short-cuts: • CTRL C, X, V, Z for copy, cut, paste, undo • double-click a word to select • SHIFT cursor move to select • TAB/SHIFT-TAB with select to increase/decrease indent.
There is a right-click menu, which has the usual editing and load/save functions.
Right-click menu options.
There are Find and Replace tools, with the usual options.