Git Product home page Git Product logo

pshadertoy's Introduction

1. Processing: PShaderToy

ShaderToy shaders work with minor changes. Start here if you have no prior experience with shader writing, but are already comfortable in a C-like language. Processing's shader markup is probably most similar to ShaderToy's overall.

2. p5.js: p5jsShaderToy

ShaderToy shaders work with minor changes. The p5.js Web Editor is extremely friendly, so start here if you've written any JavaScript before. Otherwise, be aware that setting up a new JS project from scratch can take a bit of practice if you're not used to it.

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 0.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. openFrameworks for Raspberry Pi (oF 0.10.1): RPiShaderToy

ShaderToy shaders require intermediate changes. Same as for desktop oF, except you need to take the extra step of checking that the shaders work with OpenGL ES (mobile). Start with the desktop version if you've never written shaders for oF before.

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, once you make it through this process, Unity offers the friendliest overall approach to shader writing, and also the best documentation.

pshadertoy's People

Contributors

n1ckfg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.