Shadertoy to Flixel
node.js script which converts fragment source (.frag) glsl shaders from Shadertoy to Flixel. Uses a cool lib node-file-dialog, check it out!
Report errors here!
WEB VERSION
Supports shaders with
- #version 100 / 110 / 120 / 130
- no sound channels
- only 2D (i think)
Converted shader supports Windows, Android, Linux (?)
pls message me if it work on some other platforms!!!!!
How to use?
- 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
How to convert it again to shadertoy?
- remove
void main()
function entirely - remove lines from
#pragma header
touniform vec4 iDate;
- profit!!!!!
What it exactly do?
- adding
#pragma header
- adding variables from shadertoy like
iResolution
andiTime
- adding additional
flixel_texture2D
function with three arguments to usebias
argument - replacing alpha value (usually
1.0
) to alpha of sprite infragColor
- adding
void main
with callingvoid mainImage
function