Hendiadyoin1 / PShaderToy

ShaderToy boilerplate for Processing 3, Unity

Home Page:http://fox-gieg.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1. Processing: PShaderToy

ShaderToy shaders work with minor changes. If you have no prior experience with any of these approaches, Processing can probably get you up and running with shaders the fastest.

2. p5.js: p5jsShaderToy

ShaderToy shaders work with minor changes. Currently shaders don't work in the p5.js Web Editor, and setting up a new JavaScript project can take a bit of practice. But if you've written any JS before, best to start here.

3. three.js: ThreeShaderToy

ShaderToy shaders work with minor changes. The process of loading shaders in three.js is unfortunately a little complicated, but it's boilerplate code that doesn't usually change. The shader code itself should work the same as in p5.js—both are WebGL.

4. openFrameworks (oF 10.1): ofShaderToy

ShaderToy shaders require intermediate changes. Shaders in oF work a little differently than in the above approaches, and modifying them may require slightly more understanding of what's going on in the code.

5. Raspberry Pi (oF 0.8.4): RPiShaderToy

TK

6. Unity: UnityShaderToy

ShaderToy shaders require major changes. Unity is the odd one out among these approaches, because it uses a different shader language--CGFX instead of GLSL. While it's possible to modify ShaderToy's GLSL shaders for direct use in Unity, they'll only work in OpenGL mode; that's impractical for most Windows desktop apps, including for VR. So instead, use the included converter script to convert the shader language from GLSL to CGFX, which Unity can use with both OpenGL and DirectX. (More complex shaders will require additional manual correction.) The good news is, if you can get the hang of this process, Unity offers the friendliest overall approach to shader writing, and also the best documentation.

About

ShaderToy boilerplate for Processing 3, Unity

http://fox-gieg.com


Languages

Language:JavaScript 83.9%Language:C# 8.0%Language:HLSL 4.2%Language:ShaderLab 2.5%Language:GLSL 0.9%Language:Makefile 0.3%Language:C++ 0.1%Language:Processing 0.0%Language:HTML 0.0%Language:Shell 0.0%Language:CSS 0.0%Language:Batchfile 0.0%