node.js script which converts fragment source (.frag) glsl shaders from Shadertoy to Flixel. Uses a cool lib node-file-dialog, check it out!
- Shader is upside down => try to find line looks like this
uv.y = 1.0 - uv.y;and remove it - If not helped pls ask me in issues here or my discord
- #version 100 / 110 / 120 / 130
- only
Imagetab (can be withCommontoo, just copy code from here toImage)
pls message me if it work on some other platforms!!!!!
- install node.js
- open
run.bat - now do what windows say
- i left night vision shader for you to test this script (its not mine ofc)! NightVisionFilter.frag
- remove
void main()function entirely - remove lines from start to
// end of ShadertoyToFlixel headerinclusively - profit!!!!!
- adding
#pragma header - adding variables from shadertoy like
iResolutionandiTime - adding additional
flixel_texture2Dfunction with three arguments to usebiasargument - replacing alpha value (usually
1.0) to alpha of sprite infragColor - adding
void mainwith callingvoid mainImagefunction
- NeeEoo - helping with regexes and optimize generated code size
