JavaScript Executables (JSX)

JSX scripts are JavaScript executable files with .jsx extension. They allow you to exploit full potential of desktop OpenGL in WebGL manner. In JSX scripts you can create all types of shaders: Fragment, Vertex, Geometry, Tessellation and Compute. You can create them using using raw OpenGL API or with higher-level, more convenient Synth API. With JSX scripts you can render and mix Fragx shaders as well.

Synthclipse uses by default Mozilla Rhino JavaScript engine, but it is possible to switch to Oracle Nashorn in the preferences:Window -> Preferences -> Synthclipse -> JavaScript engine.Unfortunatelly Nashorn engine is unstable. After couple of successive runs it could hang whole Eclipse for few to tens of seconds. I've tried very hard to fix it but without any success. (It seems like there is some kind of thread lock in JVM natvie code while this happens).

The best way to learn how to write JSX scripts is to walk through some examples. To get the examples choose from the main menu Synthclipse -> JSX Examples... and select one or more items. (You might need to create a project first).

To get taste how does a JSX script look like, below is presented one of the examples (Synth API/ProgramFactory):