Giter Site home page Giter Site logo

Comments (5)

3Dickulus avatar 3Dickulus commented on July 28, 2024 1

This is not high on my priority list right now as I'm not familiar enough with the inner workings of shadertoy and I have a feeling that it would be difficult due to the differences between shadertoy and FragM... however, github member loicvdb has contributed to the Fragmentarium/Examples repo some frags and documentation about importing shadertoy to FragM, https://github.com/loicvdb/VDB-frags allows using shadertoy fragments in FragM.

This might be helpful when trying to figure out how to do it.

FragM has a full ECMA (java) scripting inteface with debugger, the FragM commands available are documented here https://github.com/3Dickulus/FragM/wiki/06.-Scripting . With the above mentioned fragments and some creative scripting one could engineer an export.fqs script and bind it to hotkey F6... press Shift+F6 to open a file dialog to load your script, after that your script will execute when you press F6.

Will keep this issue open, but for right now the only option is that if you want to write shadertoy fragments just use shadertoy.

from fragm.

3Dickulus avatar 3Dickulus commented on July 28, 2024 1

FragM supports GLSL versions: 100, 110, 120, 130, 140, 150, 300 es, 310 es, 320 es, 330, 400, 410, 420, 430, 440, 450, 460

from fragm.

neozhaoliang avatar neozhaoliang commented on July 28, 2024

Thank you for your reply! The main reason I want to export Shadertoy files is that when I want to share some of my works with non-programmers, they lack the necessary experience to install and operate FragM. Shadertoy would be more convenient for them. However, this is not an urgent need. It would be great if this feature could be added in the future.

from fragm.

3Dickulus avatar 3Dickulus commented on July 28, 2024

Maybe a standalone player for FragM that could play animation settings? a "fragX" program that executes a shader without the main program. I think there's something like that out there already... maybe opensource?

from fragm.

neozhaoliang avatar neozhaoliang commented on July 28, 2024

One issue with using the fragX approach is the portability of GLSL. I have encountered this problem multiple times when using FragM/Fragmentarium, where many shader programs require modifications to the GLSL version for different machines. Even for versions below 120, I had to manually write functions like inverse(mat3). Does it seem Shadertoy is using GLSL es 300? Its compatibility on different platforms is much better.

from fragm.

Related Issues (20)

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.